Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
[ci] add extra cache keys to prevent trampling over caches
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Feb 26, 2022
1 parent 727ed27 commit 1fced50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "lint"
- name: Lint (clippy)
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -69,6 +71,8 @@ jobs:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "core"

# Build all packages we care about one by one to ensure feature unification
# doesn't happen.
Expand Down Expand Up @@ -133,6 +137,8 @@ jobs:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "all-features"
- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -173,6 +179,8 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "build-rustdoc"
- name: Build rustdoc
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -203,6 +211,8 @@ jobs:
toolchain: 1.58
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "extended"
- name: Build and test
uses: actions-rs/cargo@v1
with:
Expand All @@ -224,6 +234,8 @@ jobs:
target: aarch64-unknown-linux-gnu
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
key: "aarch64-build"
- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 1fced50

Please sign in to comment.