Repository navigation
ci: Node.js 24 で動く版へ actions を上げる - #4
Merged
Merged
Conversation
GitHub Actions の Node.js 20 の非推奨警告に対応する。 actions/checkout を v7.0.1、actions/setup-node を v7.1.0、actions/setup-python を v7.0.0 に上げ、 pinact で commit SHA に固定した。zig-fmt.yml の mlugg/setup-zig@v2 も SHA に固定した。 mlugg/setup-zig は最新の v2.2.1 も Codeberg の main も node20 のままで、 Node.js 24 で動く版がないため据え置く。 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.
GitHub Actions の「Node.js 20 is deprecated」警告に対応します。
Node.js 20 で動く action を Node.js 24 で動く版に上げ、commit SHA に固定しました。
mlugg/setup-zigだけは Node.js 24 で動く版がまだないため据え置きます。警告の原因
警告は、ワークフローで指定している Node.js のバージョンではなく、action 自体が Node.js 20 で動く版であることから出ています。
app.ymlのnode-version: '22.23.2'はアプリのビルドとテストに使う Node.js で、この警告とは関係しないので変えていません。#3 の CI で、警告の対象として挙がっていた action は次の 4 つです。
actions/checkoutactions/setup-nodeactions/setup-pythonmlugg/setup-zig各版の
action.ymlのruns.usingを見て、使う Node.js を確認しました。SHA は pinact で固定し、各タグが指すコミットと一致することを GitHub の API で照合しました。
zig-fmt.ymlのactions/checkout@v4とmlugg/setup-zig@v2はタグ指定だったので、あわせて SHA に固定しています。破壊的変更の影響
v4 から v7 までの各メジャー版のリリースノートを読み、このリポジトリのワークフローで影響がないことを確認しました。
package.jsonにpackageManagerがあると自動でキャッシュするようになりました(v6 で npm に限定)。app.ymlはcache: npmを明示しているので、挙動は変わりません。NODE_AUTH_TOKENのダミーの書き出しが廃止されました。npm への公開はしていないので影響しません。pip-install入力が廃止されました。pack-compare.ymlはこの入力を使わず、python -m pip installで入れています。据え置いた mlugg/setup-zig
mlugg/setup-zigの GitHub リポジトリは Codeberg(codeberg.org/mlugg/setup-zig)の読み取り専用ミラーです。最新の v2.2.1 も、Codeberg の main ブランチ(2026-01-18 更新)も
using: 'node20'のままです。いまはランナーが Node.js 24 で強制的に動かしているので、動作には問題ありません。
Node.js 24 で動く版が出たら上げます。
自前のスクリプトで Zig を入れれば警告は消えますが、setup-zig が持つ Zig のキャッシュを失い、CI が遅くなるので見送りました。
検証
この PR の CI(
fcb6921a)で、次の 2 点を確認しました。no-gpu(zig、zig-windows)、Zig format、App and mobile checks(desktop、mobile)、Flash Next pack comparisonがすべて通りました。zig-windowsは upstream の v1.1.1 を取り込み、GLM CUDA を upstream のエンジンへ切り替える(3bit EXL3 は維持) #3 で入れたとおり、ステップの失敗を注記に残したうえでジョブとしては通っています。Node.js 20 の警告が残っているのは
zig、zig-windows、fmtの 3 ジョブで、対象はすべてmlugg/setup-zigだけです。desktop、mobile、pack-compareには警告がありません。🤖 Generated with Claude Code