Skip to content

Commit

Permalink
Fix incorrect use of Swatinem/rust-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Nov 6, 2023
1 parent 8d2cfde commit 84844ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
components: clippy

- uses: Swatinem/rust-cache@v2
with:
key: profile-${{ matrix.profile }}

- name: Lint feature soundness
if: matrix.profile == 'dev'
Expand Down Expand Up @@ -73,6 +75,8 @@ jobs:
components: clippy

- uses: Swatinem/rust-cache@v2
with:
key: toolchain-${{ matrix.toolchain }}

- name: Run clippy
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/main-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
key: toolchain-${{ matrix.toolchain }}

# for wasm-bindgen-cli, always use stable rust
- name: Setup toolchain
Expand Down Expand Up @@ -131,6 +133,8 @@ jobs:
toolchain: ${{ matrix.toolchain }}

- uses: Swatinem/rust-cache@v2
with:
key: toolchain-${{ matrix.toolchain }}

- name: Run native tests
env:
Expand Down Expand Up @@ -159,6 +163,8 @@ jobs:
toolchain: nightly

- uses: Swatinem/rust-cache@v2
with:
key: toolchain-${{ matrix.toolchain }}

- name: Run tests
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/size-cmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:

- name: Restore Rust cache for master
uses: Swatinem/rust-cache@v2
with:
key: target-${{ matrix.target }}

- name: Setup Trunk
uses: jetli/[email protected]
Expand Down

0 comments on commit 84844ab

Please sign in to comment.