-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: See if Swatinem/rust-cache is faster than mozilla-actions/sccache-action * Install Rust tools before caching * Set shell * Use correct toolchain * Add cargo bin to PATH
- Loading branch information
1 parent
06b5f29
commit 78919a5
Showing
3 changed files
with
20 additions
and
19 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 |
---|---|---|
|
@@ -20,11 +20,21 @@ runs: | |
toolchain: ${{ inputs.version }} | ||
components: ${{ inputs.components }} | ||
|
||
- name: Use sccache | ||
uses: mozilla-actions/[email protected] | ||
- name: Install cargo-binstall (Windows) | ||
if: runner.os == 'Windows' | ||
shell: pwsh | ||
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content | ||
|
||
- name: Enable sscache | ||
- name: Install cargo-binstall (Windows) | ||
if: runner.os != 'Windows' | ||
shell: bash | ||
run: | | ||
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" | ||
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" | ||
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash | ||
|
||
- name: Install Rust tools | ||
shell: bash | ||
run: cargo +${{ inputs.version }} binstall --no-confirm cargo-llvm-cov cargo-nextest flamegraph | ||
|
||
- name: Use Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-all-crates: "true" |
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
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