mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[CI] Export both cache service URL spellings for sccache
sccache 0.18 documents ACTIONS_CACHE_URL while the runner only provides ACTIONS_RESULTS_URL (v2 service), so the GHA backend may never engage: two full runs stored 343 entries locally with zero cross-run hits and no sccache-* keys in the inventory. Export both spellings before the sccache setup and watch whether keys appear. Experiment for #7381, revert whichever half proves unnecessary.
This commit is contained in:
parent
8c38885b44
commit
23adca2f9d
1 changed files with 11 additions and 0 deletions
11
.github/workflows/desktop-build.yml
vendored
11
.github/workflows/desktop-build.yml
vendored
|
|
@ -525,6 +525,17 @@ jobs:
|
|||
# sccache is only useful for the Ninja job: a compiler cache has to wrap the
|
||||
# compiler, and MSBuild is driven by cmake instead of running it, so a
|
||||
# launcher handed to MSBuild is ignored without a word.
|
||||
# Experiment: sccache 0.18 may read ACTIONS_CACHE_URL (v1) while the runner
|
||||
# only provides ACTIONS_RESULTS_URL (v2, see ACTIONS_CACHE_SERVICE_V2), which
|
||||
# would leave the GHA backend disengaged and everything local-only with zero
|
||||
# cross-run hits. Export both spellings and watch for sccache-* keys.
|
||||
- name: "[Windows/Ninja] Export cache service URLs for sccache"
|
||||
if: matrix.os == 'Windows' && matrix.cmake_generator == 'Ninja'
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || process.env.ACTIONS_RESULTS_URL || '');
|
||||
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
|
||||
- name: "[Windows/Ninja] Set up sccache"
|
||||
if: matrix.os == 'Windows' && matrix.cmake_generator == 'Ninja'
|
||||
uses: mozilla-actions/sccache-action@v0.0.11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue