Skip to content

Commit

Permalink
feat: cache build artifacts using cargo-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Aug 30, 2024
1 parent ed8d351 commit 0362567
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
toolchain: nightly-2024-08-21
components: rustc-dev, llvm-tools-preview

- name: Cache build artifacts
uses: Leafwing-Studios/cargo-cache@v2
with:
sweep-cache: true

- name: Run tests
run: cargo test --workspace

Expand All @@ -41,6 +46,11 @@ jobs:
toolchain: nightly-2024-08-21
components: clippy, rustc-dev, llvm-tools-preview

- name: Cache build artifacts
uses: Leafwing-Studios/cargo-cache@v2
with:
sweep-cache: true

- name: Run Clippy
run: cargo clippy --workspace -- -D warnings

Expand All @@ -58,5 +68,10 @@ jobs:
toolchain: nightly-2024-08-21
components: rustfmt, rustc-dev, llvm-tools-preview

- name: Cache build artifacts
uses: Leafwing-Studios/cargo-cache@v2
with:
sweep-cache: true

- name: Run rustfmt
run: cargo fmt --all --check

0 comments on commit 0362567

Please sign in to comment.