11#
2- # Copyright (c) 2024 Oracle and/or its affiliates.
2+ # Copyright (c) 2024, 2025 Oracle and/or its affiliates.
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
@@ -51,6 +51,9 @@ inputs:
5151 free-space :
5252 description : Whether to aggressively free disk space on the runner
5353 default : ' false'
54+ setup-latest-java :
55+ description : Whether to setup latest stable java version
56+ default : ' false'
5457runs :
5558 using : " composite"
5659 steps :
@@ -87,10 +90,18 @@ runs:
8790 check-for-updates : ' false'
8891 set-java-home : ' false'
8992 - name : Set up JDK
93+ if : ${{ inputs.setup-latest-java == 'false' }}
90949195 with :
9296 distribution : ${{ env.JAVA_DISTRO }}
9397 java-version : ${{ env.JAVA_VERSION }}
98+ - name : Set up JDK ea-stable
99+ if : ${{ inputs.setup-latest-java == 'true' }}
100+ uses : oracle-actions/setup-java@v1
101+ with :
102+ website : jdk.java.net
103+ release : ea
104+ version : stable
94105 - name : Cache local Maven repository (read-write)
95106 if : ${{ inputs.maven-cache == 'read-write' }}
96107@@ -102,9 +113,9 @@ runs:
102113 !.m2/repository/io/helidon/**
103114 enableCrossOsArchive : true
104115 # only hash top-level poms to keep it fast
105- key : local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
116+ key : local-maven-${{ github.run_id }}-${{ hashFiles('*/pom.xml', 'pom.xml') }}
106117 restore-keys : |
107- local-maven-
118+ local-maven-${{ github.run_id }}
108119 - name : Cache local Maven repository (read-only)
109120 if : ${{ inputs.maven-cache == 'read-only' }}
110121 uses :
actions/cache/[email protected] @@ -113,9 +124,9 @@ runs:
113124 .m2/repository/**/*.*
114125 !.m2/repository/io/helidon/**
115126 enableCrossOsArchive : true
116- key : local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
127+ key : local-maven-${{ github.run_id }}-${{ hashFiles('*/pom.xml', 'pom.xml') }}
117128 restore-keys : |
118- local-maven-
129+ local-maven-${{ github.run_id }}
119130 - name : Build cache (read-write)
120131 if : ${{ inputs.build-cache == 'read-write' }}
121132@@ -159,7 +170,7 @@ runs:
159170 **/target/failsafe-reports/**
160171 **/target/it/**/*.log
161172 - name : Archive artifacts
162- if : ${{ inputs.artifact-name != '' && inputs.artifact-path != '' && always() }}
173+ if : ${{ inputs.artifact-name != '' && inputs.artifact-path != '' && always() }}
163174 uses : actions/upload-artifact@v4
164175 with :
165176 if-no-files-found : ' ignore'
0 commit comments