ci(checks): use rust-cache action to cache dependencies

This commit is contained in:
dundargoc 2024-02-04 15:36:43 +01:00
parent 72a75326f7
commit 003521895d
3 changed files with 5 additions and 8 deletions

View file

@ -102,7 +102,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
toolchain: ${{ matrix.rust-toolchain || 'stable' }}
toolchain: 'stable'
- name: Install cross
if: ${{ matrix.use-cross }}

View file

@ -13,11 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rustfmt
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo check --workspace --examples --tests --benches --bins

View file

@ -20,8 +20,8 @@ jobs:
- name: Install UBSAN library
run: sudo apt-get update -y && sudo apt-get install -y libubsan1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Build CLI
run: cargo build --release