背景
GitHub Actions で利用している actions/cache を v4 系から v5 系へ更新する。
現在、workflow で actions/cache v4.2.2 が利用されている。pinact run -u --min-age 7 の結果、更新先は v5.0.5 となる。
対象
actions/cache v4.2.2 -> v5.0.5
参考
Changelog
actions/cache v5.0.0
[!IMPORTANT]
actions/cache@v5 runs on the Node.js 24 runtime and requires a minimum Actions Runner version of 2.327.1.
If you are using self-hosted runners, ensure they are updated before upgrading.
What's Changed
Full Changelog: actions/cache@v4.3.0...v5.0.0
https://github.com/actions/cache/releases/tag/v5.0.0 より引用
actions/cache v5.0.5
What's Changed
Full Changelog: actions/cache@v5...v5.0.5
https://github.com/actions/cache/releases/tag/v5.0.5 より引用
主な変更点
v5.0.0 で action runtime が Node.js 24 に更新された。
- self-hosted runner を使う場合は Actions Runner
v2.327.1 以上が必要。
対応方針
actions/cache を利用している workflow を v5.0.5 に更新する。
- 既存の cache key / restore-keys / path 設定は維持する。
- build runner cache の restore / save が PR 上で成功することを確認する。
完了条件
背景
GitHub Actions で利用している
actions/cacheを v4 系から v5 系へ更新する。現在、workflow で
actions/cachev4.2.2が利用されている。pinact run -u --min-age 7の結果、更新先はv5.0.5となる。対象
actions/cachev4.2.2->v5.0.5参考
Changelog
actions/cachev5.0.0https://github.com/actions/cache/releases/tag/v5.0.0 より引用
actions/cachev5.0.5https://github.com/actions/cache/releases/tag/v5.0.5 より引用
主な変更点
v5.0.0で action runtime が Node.js 24 に更新された。v2.327.1以上が必要。対応方針
actions/cacheを利用している workflow をv5.0.5に更新する。完了条件
pinactによりactions/cacheがv5.0.5に更新されている。pinact run --verifyが成功する。