ci(checks): use rust-cache action to cache dependencies
This commit is contained in:
parent
72a75326f7
commit
003521895d
3 changed files with 5 additions and 8 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
7
.github/workflows/checks.yml
vendored
7
.github/workflows/checks.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
.github/workflows/sanitize.yml
vendored
4
.github/workflows/sanitize.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue