Skip to content

CI: move to actions/checkout v7 and actions/cache v6 (Node 24) - #286

Open
sombraSoft wants to merge 1 commit into
ivall:mainfrom
sombraSoft:ci/actions-bump
Open

sombraSoft wants to merge 1 commit into
ivall:mainfrom
sombraSoft:ci/actions-bump

Conversation

@sombraSoft

@sombraSoft sombraSoft commented Nov 23, 2026 •

Copy link
Copy Markdown

Moves CI to actions/checkout v7 and actions/cache v6. Both v4 releases run on Node 20, which GitHub has deprecated, so every CI run carries a warning annotation.

Part of #265

What is in it

  • .github/workflows/ci.yml: actions/checkout@v4 → @v7 and actions/cache@v4 → @v6 (Node 24). Nothing else in the newer majors affects this job:
    • checkout v6 keeps the persisted token under RUNNER_TEMP instead of .git/config, and the job does not use it;
    • checkout v7 refuses fork checkouts only under pull_request_target / workflow_run;
    • cache v6 keeps the same inputs and service.
  • .github/workflows/pr-check.yml: actions/checkout@v4 → @v7 too. checkout v7 refuses to check out a fork PR's head under pull_request_target; this job checks out pull_request.base.sha (main's checker), never the PR head, so the check does not fire (actions/checkout#2454; 7.0.1 also skips it for default inputs).
  • CI: cache Cargo with rust-cache, saved from main only #274 replaces actions/cache with Swatinem/rust-cache. Whichever of the two merges second drops the cache line from this one.

CI time

  • 0: same steps, newer action versions.

Tested

  • Fork run, green: https://github.com/sombraSoft/xcl/actions/runs/45278059062. Its build check run has no annotations, so the Node 20 deprecation warning that v4 produces is gone.
  • Full suite on main (9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug: scripts/test.ps1 → 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.

Regression run

  • Not needed: no crates/xcl/src change.

Not tested

  • pr-check.yml on v7: pull_request_target runs main's copy of the workflow, so this PR's version only runs after merge.
  • A cold cache. The fork run restored an existing cache; cache v6 uses the same key and service.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change and this description; I read the diff.

checkout v4 and cache v4 run on Node 20, which GitHub has deprecated: every CI run
carries a warning annotation for it. checkout v5+ and cache v5+ run on Node 24. Nothing
else in the newer majors changes this job: checkout v6 keeps the persisted token in a
file under RUNNER_TEMP instead of .git/config (the job never uses it), checkout v7 refuses
fork checkouts only under pull_request_target / workflow_run (this workflow uses
pull_request), and cache v6 keeps the same inputs and cache service.
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