feat: Toggleable sccache (#9773) (#9774)

This commit is contained in:
Gilver
2026-02-10 11:06:50 -06:00
committed by GitHub
parent 2afce95fee
commit a7498795c1
+3 -9
View File
@@ -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