Skip to content

Commit

Permalink
try to use shared key between jobs for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sowasvonbot committed Jan 20, 2024
1 parent c4dbc45 commit 4c580e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-files"
- name: Run cargo fmt
run: cargo fmt -- --check

Expand All @@ -41,6 +43,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-files"
- name: Run linter
run: cargo clippy -- -D warnings

Expand All @@ -52,5 +56,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-files"
- name: Run tests
run: cargo test --verbose

0 comments on commit 4c580e9

Please sign in to comment.