Skip to content

Commit

Permalink
[ci] use Swatinem/rust-cache
Browse files Browse the repository at this point in the history
This should speed up builds.
  • Loading branch information
sunshowers committed Dec 9, 2021
1 parent 5e18440 commit 44b62fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Lint (clippy)
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
with:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c

# Build all packages we care about one by one to ensure feature unification
# doesn't happen.
Expand Down Expand Up @@ -138,6 +140,7 @@ jobs:
with:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -173,6 +176,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Build rustdoc
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -201,6 +205,7 @@ jobs:
# 1.54 is the cfg-expr version
# TODO: why is there no way to specify this as a global variable in GHA?
toolchain: 1.54
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Build and test
uses: actions-rs/cargo@v1
with:
Expand All @@ -221,6 +226,7 @@ jobs:
toolchain: stable
target: aarch64-unknown-linux-gnu
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 44b62fa

Please sign in to comment.