Commit 7bb0446
Enable sccache for linux-musl-x64 coreclr builds (#128050)
> [!NOTE]
> This PR was generated with the assistance of GitHub Copilot.
## Summary
Extends sccache caching from linux-x64 to also cover linux-musl-x64
coreclr build legs. Based on the linux-x64 results (~9 min/leg gross
savings, 97.59% hit rate at steady state), this should provide similar
speedups for the musl legs.
## Changes
- **setup-sccache.yml**: Widen condition to include `osSubgroup ==
'_musl'`; add `osSubgroup` to cache key to keep musl/glibc caches
separate
- **sccache-stats.yml**: Widen condition to match
## Why this works
- The sccache NuGet package (v0.15.0) is a **statically-linked** binary
— verified with `file` showing `static-pie linked`. Works on both glibc
and musl.
- The sccache package is already downloaded by `runtime-prereqs.proj` on
all Linux CI builds (line 13-14, condition: `IsOsPlatform(Linux)`).
- Cache keys include `osSubgroup` so musl builds get
`sccache|linux_musl|x64|...` vs `sccache|linux|x64|...` for glibc — no
cross-contamination.
- For non-musl builds, `osSubgroup` is empty, so the key is
**unchanged** — existing caches remain valid.
## Also included
`SCCACHE_CACHE_SIZE=3.5G` limit (from #128048) to prevent unbounded
cache growth.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ea0cf22 commit 7bb0446
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments