Skip to content

Commit 1adf441

Browse files
SDAChesselezar
authored andcommitted
ci(rust): remove ineffective sccache backend
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
1 parent c5fa95b commit 1adf441

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

.github/actions/build-rust-binary/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ runs:
3535
- uses: ./.github/actions/setup-rust
3636
with:
3737
cache-key: binaries-v2-${{ inputs.binary }}-${{ inputs.triple }}
38-
sccache-key: binaries-v2-${{ inputs.triple }}
3938
save-cache: "true"
4039

4140
- name: Set version

.github/actions/setup-rust/action.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ inputs:
88
cache-key:
99
description: Rust target cache namespace
1010
required: true
11-
sccache-key:
12-
description: Compiler cache namespace; defaults to cache-key
13-
required: false
14-
default: ""
1511
save-cache:
1612
description: Whether this job writes the Rust target cache
1713
required: false
@@ -27,34 +23,15 @@ runs:
2723
shell_drv=$(nix eval --raw --impure .#devShells --apply 'shells: shells.${builtins.currentSystem}.default.drvPath')
2824
echo "hash=$(nix hash file --type sha256 --base16 "$shell_drv")" >> "$GITHUB_OUTPUT"
2925
30-
- name: Configure GHA sccache backend
31-
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
32-
env:
33-
SCCACHE_GHA_ENABLED: "true"
34-
SCCACHE_GHA_VERSION: ${{ inputs.sccache-key || inputs.cache-key }}-${{ steps.dev-shell.outputs.hash }}-${{ runner.os }}-${{ runner.arch }}
35-
3626
- name: Realize Nix development shell
3727
shell: bash
3828
run: nix develop -c true
3929

4030
- name: Cache Rust target and registry
4131
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
42-
env:
43-
RUSTC_WRAPPER: ""
4432
with:
4533
shared-key: ${{ inputs.cache-key }}-${{ steps.dev-shell.outputs.hash }}
4634
save-if: ${{ inputs.save-cache }}
4735
cache-on-failure: ${{ inputs.save-cache }}
4836
cache-bin: "false"
4937
cmd-format: nix develop -c {0}
50-
51-
- name: Enable sccache
52-
shell: bash
53-
env:
54-
SCCACHE_VERSION: ${{ inputs.sccache-key || inputs.cache-key }}-${{ steps.dev-shell.outputs.hash }}-${{ runner.os }}-${{ runner.arch }}
55-
run: | # zizmor: ignore[github-env] values are literal or trusted repository/runner-derived cache identifiers
56-
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
57-
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
58-
echo "SCCACHE_GHA_VERSION=${SCCACHE_VERSION}" >> "$GITHUB_ENV"
59-
echo "SCCACHE_CLIENT_SIDE=1" >> "$GITHUB_ENV"
60-
echo "SCCACHE_BASEDIRS=${GITHUB_WORKSPACE}" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)