mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
ci: fix sccache action config and enable Rust via RUSTC_WRAPPER + GHA backend
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user