Skip to content

Commit

Permalink
ci(cache): replace rust-cache with sccache-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Nov 11, 2024
1 parent 2533a0a commit afd29e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
toolchain: stable
components: clippy

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

- name: Run Clippy Deny Warning
run: cargo clippy --tests --locked -- -D warnings
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
with:
toolchain: stable

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install cargo-binstall
uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -155,8 +155,11 @@ jobs:
toolchain: stable
targets: ${{ matrix.target }}

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

- name: Install cross-compilation tools
if: ${{ matrix.cross }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
with:
tool: nextest

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

- name: Run Test
run: |
Expand Down

0 comments on commit afd29e4

Please sign in to comment.