ci: install the pinned node from its tarball instead of trusting the runner image
Gates / container (push) Successful in 14s
CI / gates (push) Failing after 27m7s
Gates / test (push) Successful in 2m37s
Gates / frontend (push) Successful in 2m6s
Gates / test-aarch64 (push) Failing after 5m59s
Gates / package (push) Successful in 4m35s
Gates / container (push) Successful in 14s
CI / gates (push) Failing after 27m7s
Gates / test (push) Successful in 2m37s
Gates / frontend (push) Successful in 2m6s
Gates / test-aarch64 (push) Failing after 5m59s
Gates / package (push) Successful in 4m35s
This commit is contained in:
@@ -68,6 +68,7 @@ env:
|
||||
ZIG_TARBALL_SHA256: "70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00"
|
||||
# Exact patch, not a floating "24" (ruling 12).
|
||||
NODE_VERSION: "24.19.0"
|
||||
NODE_TARBALL_SHA256: "f625d97cd707df4ff96254916fbc5ff014f09c09effe5a1e0ca8f6d41a8789d4"
|
||||
NPM_VERSION: "11.17.0"
|
||||
|
||||
# The author's commit- and tag-signing key. `git verify-tag` alone proves
|
||||
@@ -271,9 +272,17 @@ jobs:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: ./zig-out/bin/release resolve
|
||||
|
||||
# The runner image ships this Node and npm on PATH; the assertion below is
|
||||
# what pins them. setup-node is not used: it looks for Node in an empty
|
||||
# tool cache and downloads it again on every run.
|
||||
# Installed from the official tarball, pinned by its digest: the runner
|
||||
# image's Node moves with the image tag, and a rebuilt image on a newer
|
||||
# Node failed the assertion below on 2026-10-22.
|
||||
- name: Install the pinned Node
|
||||
run: |
|
||||
curl -fsSLo "${RUNNER_TEMP:?}/node.tar.gz" "https://nodejs.org/dist/v${NODE_VERSION:?}/node-v${NODE_VERSION:?}-linux-x64.tar.gz"
|
||||
echo "${NODE_TARBALL_SHA256:?} ${RUNNER_TEMP:?}/node.tar.gz" | sha256sum -c -
|
||||
mkdir "${RUNNER_TEMP:?}/node"
|
||||
tar -xzf "${RUNNER_TEMP:?}/node.tar.gz" -C "${RUNNER_TEMP:?}/node" --strip-components=1
|
||||
echo "${RUNNER_TEMP:?}/node/bin" >> "${GITHUB_PATH:?}"
|
||||
|
||||
- name: Cache npm downloads
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user