ci: use official sccache github action

This commit is contained in:
Ryan Walters
2025-08-20 12:28:07 -05:00
parent fc47fd9fe9
commit 6c2c10c25d
+7 -11
View File
@@ -7,9 +7,6 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
SCCACHE_CACHE_SIZE: "2G"
jobs: jobs:
build: build:
@@ -46,15 +43,14 @@ jobs:
components: rustfmt, clippy components: rustfmt, clippy
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install sccache - name: Run sccache-cache only on non-release runs
uses: taiki-e/install-action@sccache if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
uses: mozilla-actions/sccache-action@v0.0.9
- name: Configure sccache - name: Set Rust caching env vars only on non-release runs
uses: actions/github-script@v7 run: |
with: echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
script: | echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
core.exportVariable("ACTIONS_RESULTS_URL", process.env.ACTIONS_RESULTS_URL || "");
core.exportVariable("ACTIONS_RUNTIME_TOKEN", process.env.ACTIONS_RUNTIME_TOKEN || "");
- name: Rust cache - name: Rust cache
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2