mbien commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296711380
##########
.github/workflows/main.yml:
##########
@@ -38,19 +38,34 @@ jobs:
steps:
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
- uses: actions/checkout@v3
+ uses: actions/checkout@v5
with:
persist-credentials: false
submodules: false
- name: Set up Ubuntu dependencies
run: |
- sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+ sudo apt update
+ sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+ - name: Download latest JDK 24
+ run: |
+ PROC=`uname -p`
+ if [ "$PROC" = "x86_64" ] ; then PROC="x64"; fi;
+ URL=`wget
https://raw.githubusercontent.com/oracle-actions/setup-java/refs/heads/main/jdk.java.net-uri.properties
-O - | grep "24,latest,linux,$PROC" | cut -d '=' -f 2-`
+ wget $URL -O $RUNNER_TEMP/jdk-24.tar.gz
+
+ - name: Set up JDK 24 from the downloaded archive
+ uses: actions/setup-java@v5
+ with:
+ distribution: 'jdkfile'
+ jdkFile: ${{ runner.temp }}/jdk-24.tar.gz
+ java-version: '24'
Review Comment:
here the policy for the curious:
https://infra.apache.org/github-actions-policy.html
`oracle-actions/setup-java` is on the managed allow list too:
https://github.com/apache/infrastructure-actions/blob/740802cd07a28448f5b3d3f76af5bc14796a3979/actions.yml#L633
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists