fix(ci): cache after selecting the toolchain (#4619)

This commit is contained in:
Marco Ieni 2022-11-21 17:54:59 +01:00 committed by GitHub
parent 0e1dd6f707
commit e4dbff0fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 18 deletions

View File

@ -50,9 +50,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
with:
@ -61,6 +58,9 @@ jobs:
profile: minimal
components: clippy
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Build | Lint
uses: actions-rs/cargo@v1.0.3
with:
@ -75,9 +75,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
with:
@ -85,6 +82,9 @@ jobs:
profile: minimal
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Build | Check
run: cargo check --workspace --locked
@ -97,9 +97,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
with:
@ -107,6 +104,9 @@ jobs:
profile: minimal
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Build | Check
run: cargo check --workspace --locked --no-default-features
@ -119,9 +119,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
with:
@ -129,6 +126,9 @@ jobs:
profile: minimal
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Build | Check
run: cargo check --workspace --locked --all-features
@ -141,9 +141,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
with:
@ -151,6 +148,9 @@ jobs:
profile: minimal
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Run | Generate Schema
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
@ -177,9 +177,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
# Install all the required dependencies for testing
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
@ -189,6 +186,9 @@ jobs:
profile: minimal
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov