Skip to content

Commit

Permalink
fix(ci): cache after selecting the toolchain (#4619)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni committed Nov 21, 2022
1 parent 0e1dd6f commit e4dbff0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/workflow.yml
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -75,16 +75,16 @@ 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:
toolchain: stable
profile: minimal
override: true

- name: Setup | Cache
uses: Swatinem/rust-cache@v2

- name: Build | Check
run: cargo check --workspace --locked

Expand All @@ -97,16 +97,16 @@ 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:
toolchain: stable
profile: minimal
override: true

- name: Setup | Cache
uses: Swatinem/rust-cache@v2

- name: Build | Check
run: cargo check --workspace --locked --no-default-features

Expand All @@ -119,16 +119,16 @@ 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:
toolchain: stable
profile: minimal
override: true

- name: Setup | Cache
uses: Swatinem/rust-cache@v2

- name: Build | Check
run: cargo check --workspace --locked --all-features

Expand All @@ -141,16 +141,16 @@ 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:
toolchain: stable
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

Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit e4dbff0

Please sign in to comment.