chore: Backport sccache changes to 42 (#10045)

This commit is contained in:
Gilver
2026-02-22 19:30:17 -06:00
committed by GitHub
parent a28f9825ae
commit aa37e9af35
3 changed files with 380 additions and 0 deletions
+20
View File
@@ -50,6 +50,18 @@ jobs:
- name: Set up git repository
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Configure sccache
id: sccache
if: ${{ !contains(matrix.pkg.labels.sccache, '0') }}
uses: actions/github-script@v8
env:
SCCACHE_GHA_VERSION: ${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }}
SCCACHE_GHA_CACHE_FROM: ${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }}
with:
script: |
const script = require('./.github/scripts/configure-sccache.js')
await script({github, context, core, exec})
- name: CI Setup Script
if: ${{ !contains(matrix.pkg.labels, 'mock') }}
run: |
@@ -67,6 +79,14 @@ jobs:
- name: Build with Andaman
run: anda build -D "vendor Terra" -D "__python %{__python3}" ${{ matrix.pkg.pkg }} -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} ${{ !matrix.pkg.labels.mock == '1' && '-rrpmbuild' || '' }}
- name: Report Cache Summary
if: steps.sccache.outcome == 'success'
uses: actions/github-script@v8
with:
script: |
const script = require('./.github/scripts/sccache-stats.js')
await script({github, context, core, exec})
- name: Generating artifact name
id: art
run: |