From a7498795c127293a862df51c312e379ed810e002 Mon Sep 17 00:00:00 2001 From: Gilver Date: Tue, 10 Feb 2026 11:06:50 -0600 Subject: [PATCH] feat: Toggleable sccache (#9773) (#9774) --- .github/workflows/json-build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/json-build.yml b/.github/workflows/json-build.yml index 0ee0d05ab1..ecc66d63ac 100644 --- a/.github/workflows/json-build.yml +++ b/.github/workflows/json-build.yml @@ -35,12 +35,6 @@ on: type: boolean default: true -env: - RUSTC_WRAPPER: "/usr/bin/sccache" - # SCCACHE_NO_DAEMON: "1" - # Disable incremental compilation so sccache works better - CARGO_INCREMENTAL: "false" - jobs: build: strategy: @@ -75,12 +69,12 @@ jobs: dir=$(dirname ${{ matrix.pkg.pkg }}) dnf5 builddep -y ${dir}/*.spec - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.9 - - name: Configure sccache + if: ${{ !contains(matrix.pkg.labels, 'sccache') }} run: | set -euo pipefail + echo "RUSTC_WRAPPER=/usr/bin/sccache" >> $GITHUB_ENV + echo "CARGO_INCREMENTAL=false" >> $GITHUB_ENV echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV if [ "${{ inputs.bust_cache }}" = "true" ]; then echo "SCCACHE_BUST_CACHE=true" >> $GITHUB_ENV