Repository navigation
CI: toolchain cache keyed on what the build uses; actions on Node 24 - #24
Merged
Merged
Conversation
- compile-examples: the toolchain cache key is the git hash of GCC-6.50-Dev-Linux.sh plus the tree hash of Compilers/_archives, read from the sparse ApolloLib fetch (blob:none, so only trees). Commits to Projects/ or the README no longer trigger an hour-long rebuild. - Actions off the deprecated Node 20: checkout v7, setup-python v7, cache restore/save v6, upload-artifact v7, markdownlint-cli2-action v25. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Toolchain cache key
Before:
apollocrossdev-gcc650dev-<ApolloCrossDev main sha>. Every ApolloCrossDev commit, even toProjects/ApolloLibor the README, meant a full toolchain rebuild of about an hour. That happened five times on 2026-11-04.Now:
apollocrossdev-gcc650dev-<hash of GCC-6.50-Dev-Linux.sh>-<tree hash of Compilers/_archives>.Compilers/_archives.Projects/(ApolloLib, examples, acp, bgdbserver) doesn't end up in the cached compiler folder.Projects/ApolloLib(--filter=blob:none, trees only), so no extra download.8fda59f7ee9c-2184ff37b459.Not covered, as before: the script also clones
amiga-gccandDevPacfrom the network, so an upstream change there doesn't change the key.First run: the first run of this PR rebuilds the toolchain once, because the new key isn't cached yet.
Actions off Node 20
CI warned "Node.js 20 is deprecated" for checkout, setup-python and markdownlint-cli2-action. All actions are moved to their latest major, all running on Node 24:
actions/checkoutactions/setup-pythonactions/cache/restore,/saveactions/upload-artifactDavidAnson/markdownlint-cli2-actionRelease notes: they list no breaking change beyond Node 24, which needs runner 2.327.1+; GitHub-hosted runners have that.
Markdown lint: markdownlint goes from cli2 0.13 to 0.24 and may bring new rules. This PR's own run is the test; if it flags existing files, the fixes go into this PR.
🤖 Generated with Claude Code