The GHA actions needs to be updated. 
Currently GHA builds show warnings, for example the build : 
https://github.com/arapte/jfx/actions/runs/24330731766

**Linux x64 & macOS x64 & macOS aarch64** 
`Warning: Node.js 20 actions are deprecated. The following actions are running 
on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will 
be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 
will be removed from the runner on September 16th, 2026. Please check if 
updated versions of these actions are available that support Node.js 24. To opt 
into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true 
environment variable on the runner or in your workflow file. Once Node.js 24 
becomes the default, you can temporarily opt out by setting 
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: 
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/`

**Windows x64**
`Warning: Node.js 20 actions are deprecated. The following actions are running 
on Node.js 20 and may not work as expected: actions/cache@v4, 
actions/checkout@v4. Actions will be forced to run with Node.js 24 by default 
starting June 2nd, 2026. Node.js 20 will be removed from the runner on 
September 16th, 2026. Please check if updated versions of these actions are 
available that support Node.js 24. To opt into Node.js 24 now, set the 
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or 
in your workflow file. Once Node.js 24 becomes the default, you can temporarily 
opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more 
information see: 
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/`
<br>

These warnings go away with this PR changes.
Build with this PR: https://github.com/arapte/jfx/actions/runs/24409801823

Changes:
- Update actions/checkout to v6,  Reference: 
https://github.com/actions/checkout/releases
- Update actions/caches to v5,  Reference: 
https://github.com/actions/cache/releases
- Update gradle/actions/wrapper-validation to v6, Reference: 
https://github.com/gradle/actions/blob/main/wrapper-validation/README.md
---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - update gha to node24

Changes: https://git.openjdk.org/jfx/pull/2148/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2148&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8382046
  Stats: 12 lines in 1 file changed: 0 ins; 0 del; 12 mod
  Patch: https://git.openjdk.org/jfx/pull/2148.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2148/head:pull/2148

PR: https://git.openjdk.org/jfx/pull/2148

Reply via email to