Skip to content

Commit

Permalink
ci: set features as cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Dec 9, 2024
1 parent 4f52849 commit b250f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
- "-F deferred_free"
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Calculate features
id: features
run: echo "features=${{ matrix.mmap }} ${{ matrix.mutex }} ${{ matrix.deferred_free }}" >> "$GITHUB_OUTPUT"
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: ${{ steps.features.outputs.features }}
- name: Clippy
run: cargo clippy ${{ steps.features.outputs.features }}
- name: Build
Expand Down

0 comments on commit b250f7d

Please sign in to comment.