From e4dbff0fc7e88f792b90703f03f83e31d401b90e Mon Sep 17 00:00:00 2001 From: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com> Date: Mon, 21 Nov 2022 17:54:59 +0100 Subject: [PATCH] fix(ci): cache after selecting the toolchain (#4619) --- .github/workflows/workflow.yml | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 191d71be4..2d965a765 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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