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

Open
github-bot wants to merge 1 commit from github-bot/gh-286 into main AGit
Owner

@⁠sombraSoft on GitHub · 2026-11-23 22:23 UTC · original
sombraSoft:ci/actions-bump → main · +3 −3 · 2 files · 1 commits · open

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).
  • #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.
**@⁠sombraSoft** on GitHub · 2026-11-23 22:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/286) `sombraSoft:ci/actions-bump` → `main` · +3 −3 · 2 files · 1 commits · open 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](https://github.com/actions/checkout/pull/2454); 7.0.1 also skips it for default inputs). - #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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:18:43 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 15:03 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 15:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/286#issuecomment-7166240602) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • .github/workflows/pr-check.yml
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/286/head:github-bot/gh-286'
git switch 'github-bot/gh-286'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-286'
git switch 'github-bot/gh-286'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-286'
git switch 'github-bot/gh-286'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-286'
git switch 'main'
git merge --squash 'github-bot/gh-286'
git switch 'main'
git merge --ff-only 'github-bot/gh-286'
git switch 'main'
git merge 'github-bot/gh-286'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.