RFR: 8324723: GHA: Upgrade some actions to avoid deprecated Node 16

Aleksey Shipilev shade at openjdk.org
Fri Jan 26 08:19:46 UTC 2024


Current GHA runs produce lots of warnings:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache at v3, actions/download-artifact at v3, actions/upload-artifact at v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

We can upgrade to new actions to get the Node20.

Release/migration notes:
https://github.com/actions/cache#whats-new
https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
https://github.com/actions/download-artifact/blob/main/docs/MIGRATION.md

There is also msys2/setup-msys2, which was pinned by [JDK-8310259](https://bugs.openjdk.org/browse/JDK-8310259). We need at least 2.21.0 to get Node 20:
https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md. I think we can unpin msys2 at this point.

I don't think any of the migration problems outlined in those notes apply to our workflows.

-------------

Commit messages:
 - Correct msys2 version
 - Also msys2/setup-msys2
 - Fix

Changes: https://git.openjdk.org/jdk/pull/17572/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17572&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8324723
  Stats: 10 lines in 8 files changed: 0 ins; 1 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/17572.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17572/head:pull/17572

PR: https://git.openjdk.org/jdk/pull/17572


More information about the build-dev mailing list