-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: use sccache to speed up CI (#408)
* CI: use sccache to speed up CI * Write changelog * Only use sccache for non-cross targets
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,11 @@ jobs: | |
name: Test on each target | ||
needs: get-msrv | ||
env: | ||
# use sccache | ||
# It's too much of a hassle to set up sccache in cross. | ||
# See https://github.com/cross-rs/cross/wiki/Recipes#sccache. | ||
SCCACHE_GHA_ENABLED: ${{ matrix.cargo == 'cargo' && 'true' || 'false'}} | ||
RUSTC_WRAPPER: ${{ matrix.cargo == 'cargo' && 'sccache' || '' }} | ||
# Emit backtraces on panics. | ||
RUST_BACKTRACE: 1 | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -114,6 +119,12 @@ jobs: | |
toolchain: ${{ matrix.rust }} | ||
targets: ${{ matrix.target }} | ||
components: clippy | ||
|
||
- name: Set up sccache | ||
# It's too much of a hassle to set up sccache in cross. | ||
# See https://github.com/cross-rs/cross/wiki/Recipes#sccache. | ||
if: matrix.cargo == 'cargo' | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install cross | ||
if: matrix.cargo == 'cross' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters