ci: fix sccache action config and enable Rust via RUSTC_WRAPPER + GHA backend

This commit is contained in:
James Peter
2025-08-24 06:41:51 +10:00
parent 88a54572d8
commit 39a3ec8649
+7 -3
View File
@@ -131,8 +131,9 @@ jobs:
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
# Separate caches per target
cache-key: ${{ matrix.target }}
# Pin sccache version explicitly; action expects 'version' input
version: v0.10.0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install mold (Linux)
if: contains(matrix.os, 'ubuntu')
@@ -191,6 +192,9 @@ jobs:
CARGO_INCREMENTAL: "0"
# Increase sccache cache size
SCCACHE_CACHE_SIZE: "10G"
# Route rustc through sccache and enable GitHub Actions cache backend
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: 'true'
# Show more detail on failures
RUST_BACKTRACE: "1"
run: |
@@ -375,4 +379,4 @@ jobs:
files: |
release-assets/*
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}