Skip to content

Commit

Permalink
fix(ci): fix sccache-cache env
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Nov 12, 2024
1 parent 726add3 commit 292adcc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- uses: actions/checkout/@v4

Expand All @@ -25,9 +29,6 @@ jobs:

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
publish:
runs-on: ubuntu-latest
environment: cargo
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: Fetch Repository
uses: actions/checkout@v4
Expand All @@ -32,9 +36,6 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install cargo-binstall
uses: taiki-e/install-action@v2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

strategy:
fail-fast: false
matrix:
Expand All @@ -28,9 +32,6 @@ jobs:

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Dependencies
if: startsWith(matrix.os, 'ubuntu-')
Expand Down

0 comments on commit 292adcc

Please sign in to comment.