Skip to content

Commit

Permalink
Improve action caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubensei committed Dec 17, 2024
1 parent bed8162 commit 2491722
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
targets: x86_64-pc-windows-${{ matrix.compiler }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ steps.toolchain.outputs.cachekey }}
key: ${{ steps.toolchain.outputs.cachekey }}-${{ matrix.compiler }}
- name: Semver checks
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
shared-key: ${{ steps.toolchain.outputs.cachekey }}-${{ matrix.compiler }}
- name: cargo check
run: cargo check --target x86_64-pc-windows-${{ matrix.compiler }} --features ${{ matrix.feature }}
doc:
Expand All @@ -49,7 +51,7 @@ jobs:
id: toolchain
- uses: Swatinem/rust-cache@v2
with:
key: ${{ steps.toolchain.outputs.cachekey }}-docs
key: ${{ steps.toolchain.outputs.cachekey }}
- name: cargo doc
run: cargo doc --no-deps --all-features
env:
Expand All @@ -73,6 +75,6 @@ jobs:
toolchain: ${{ matrix.msrv }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ steps.toolchain.outputs.cachekey }}-msvr
key: ${{ steps.toolchain.outputs.cachekey }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features

0 comments on commit 2491722

Please sign in to comment.