Skip to content

Commit

Permalink
ci: cache more jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Feb 28, 2025
1 parent dfd0fc2 commit 96495b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
sed -i 's/nightly = \[\]//g' Cargo.toml
sed -i 's/generic_const_exprs = \["nightly"\]//g' Cargo.toml
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only run tests on latest stable and above
- name: Check
if: ${{ matrix.rust == '1.65' }} # MSRV
Expand Down Expand Up @@ -69,6 +71,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: |
cargo hack check \
Expand All @@ -86,6 +90,8 @@ jobs:
# with:
# components: llvm-tools-preview
# - uses: Swatinem/rust-cache@v2
# with:
# cache-on-failure: true
# - uses: taiki-e/install-action@cargo-llvm-cov
# - name: Generate code coverage
# env:
Expand Down Expand Up @@ -115,6 +121,9 @@ jobs:
- uses: dtolnay/rust-toolchain@clippy
with:
toolchain: nightly-2025-02-20 # https://github.com/rust-lang/rust-clippy/issues/14303
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-features
env:
RUSTFLAGS: -Dwarnings
Expand All @@ -128,6 +137,9 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-docs
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo doc --workspace --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: "--cfg doc_cfg -D warnings"
Expand Down

0 comments on commit 96495b0

Please sign in to comment.