Skip to content

Commit

Permalink
CI: add use of Swatinem/rust-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
miles170 committed Nov 4, 2022
1 parent f52eaa9 commit e3be83a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
rustup set profile minimal
rustup toolchain install stable -c "clippy,rustfmt"
rustup default stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Ensure `cargo fmt` has been run
run: cargo fmt --check
- name: Ensure MSRV is set in `clippy.toml`
Expand All @@ -45,6 +47,8 @@ jobs:
rustup set profile minimal
rustup toolchain install ${{ env.MIN_SUPPORTED_RUST_VERSION }} -c clippy
rustup default ${{ env.MIN_SUPPORTED_RUST_VERSION }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
run: cargo clippy --locked --all-targets --all-features
- name: Run tests
Expand Down Expand Up @@ -96,6 +100,11 @@ jobs:
rustup override set stable
rustup target add ${{ matrix.job.target }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.job.os }}-${{ matrix.job.target }}

- name: Show version information (Rust, cargo, GCC)
shell: bash
run: |
Expand Down

0 comments on commit e3be83a

Please sign in to comment.