-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
Swatinem/rust-cache@v2
for caching
`sccache` does not speedup CI at all, so switching to another action which is known to be able to actually speedup CI. Signed-off-by: Jiahao XU <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
37 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 |
---|---|---|
|
@@ -9,8 +9,6 @@ env: | |
RUSTDOCFLAGS: -Dwarnings | ||
RUST_BACKTRACE: 1 | ||
CARGO_TERM_COLOR: always | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | ||
|
||
|
@@ -50,19 +48,7 @@ jobs: | |
|
||
- name: Create Cargo.lock for caching | ||
run: cargo update | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: cargo-index-os-check-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
cargo-index-os-check-${{ matrix.target }} | ||
cargo-index-os-check- | ||
cargo-index- | ||
- uses: mozilla-actions/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- run: | | ||
cargo hack check --feature-powerset --target ${{ matrix.target }} ${{ matrix.args }} | ||
|
@@ -81,17 +67,7 @@ jobs: | |
- name: Create Cargo.lock for caching | ||
run: cargo update | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: cargo-index-check-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
cargo-index-check- | ||
cargo-index- | ||
- uses: mozilla-actions/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- run: ./check.sh | ||
|
||
|
@@ -108,17 +84,7 @@ jobs: | |
|
||
- name: Create Cargo.lock for caching | ||
run: cargo update | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: cargo-index-build-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
cargo-index-build- | ||
cargo-index- | ||
- uses: mozilla-actions/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Compile tests | ||
run: cargo test --all-features --workspace --no-run | ||
|