Skip to content

release.yml: the cache script from the workflow's commit, and faster runners by repo variable - #139

Merged
shinyobjectz merged 3 commits into
mainfrom
cache-inline
Nov 13, 2026
Merged

shinyobjectz merged 3 commits into
mainfrom
cache-inline

Conversation

@shinyobjectz

Copy link
Copy Markdown
Owner

#138's dry run to fill the cache (workflow_dispatch on main, tag v0.1.3-rc3) stopped at 'Use the compile cache' with exit 127: the job checks out the tag, and rc3's tree has no tools/release/compile-cache.sh. The script now comes from the workflow's own commit (github.sha), a sparse checkout into .workflow. Nothing in the release scripts checks for untracked files.

… commit (a sparse checkout into .workflow), not the tag's tree: a dispatched dry run that fills the cache builds an older tag (v0.1.3-rc3), whose tree has no tools/release/compile-cache.sh, so its Linux and Windows jobs stopped at 'Use the compile cache' with exit 127
…s one (vars RELEASE_MAC_RUNNER, RELEASE_LINUX_RUNNER, RELEASE_WINDOWS_RUNNER; a third party's), else GitHub's own as before. GitHub's macOS runner is a 3-core M1 with 7 GB: a cold release build took 183 minutes there, Linux 105 and Windows 142 (0.1.2-rc5)
@shinyobjectz shinyobjectz changed the title release.yml: run the compile cache's script from the workflow's commit release.yml: the cache script from the workflow's commit, and faster runners by repo variable Nov 13, 2026
…e: RELEASE_*_RUNNER hold runs-on label lists (a machine and a cache volume), RELEASE_RUNNER_CACHE=1 keeps the build folder and cargo's downloads on the volume between runs (nscloud-cache-action, after the tag's checkout), so a candidate rebuilds what changed and links. The cleanup that deletes target/ is skipped there (a bind mount on Linux), and the Mac's Xcode pruning runs only on GitHub's runner. sccache on R2 stays for the workspace's own crates, which a fresh checkout's file times mark as changed
@shinyobjectz
shinyobjectz merged commit 4a563b9 into main Nov 13, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant