Skip to content

Commit

Permalink
.github: add rust cache action
Browse files Browse the repository at this point in the history
This should reduce CI time.
  • Loading branch information
tamird committed Nov 19, 2023
1 parent acf589c commit 64e01b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.profile }}
- name: Build & test
run: |
cargo build --profile=${{ matrix.profile }}
Expand Down Expand Up @@ -63,6 +66,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --no-deps --all-targets --all-features -- -A unknown_lints -D warnings
rustdoc:
name: Generate documentation
Expand All @@ -72,4 +76,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo doc --no-deps

0 comments on commit 64e01b9

Please sign in to comment.