File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - run : $JAVA_HOME_17_X64 /bin/java --show-version src/ListOpenJavaDevelopmentKits.java ${{ github.event.inputs.name }}
14+ - run : $JAVA_HOME_21_X64 /bin/java --show-version src/ListOpenJavaDevelopmentKits.java ${{ github.event.inputs.name }}
Original file line number Diff line number Diff line change 1010 steps :
1111 - run : curl --output /dev/null --verbose --head --fail https://jdk.java.net
1212 - uses : actions/checkout@v4
13- - run : $JAVA_HOME_17_X64 /bin/java src/ListOpenJavaDevelopmentKits.java > jdk.java.net-uri.properties
13+ - run : $JAVA_HOME_21_X64 /bin/java src/ListOpenJavaDevelopmentKits.java > jdk.java.net-uri.properties
1414 - run : |
1515 git diff
1616 git config user.name github_actions_dev
Original file line number Diff line number Diff line change 1515 - name : ' Compile and run test'
1616 shell : bash
1717 run : |
18- PATH=$JAVA_HOME_17_X64 /bin:$PATH
18+ PATH=$JAVA_HOME_21_X64 /bin:$PATH
1919 javac -d classes src/Download.java test/Test.java
2020 java -cp classes Test
2121 validate :
2727 - name : ' Run validation program'
2828 shell : bash
2929 run : |
30- PATH=$JAVA_HOME_17_X64 /bin:$PATH
30+ PATH=$JAVA_HOME_21_X64 /bin:$PATH
3131 java test/Validate.java
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ This project uses tags and branches for [release management](https://docs.github
77
88## [ Unreleased]
99### Fixed
10- - Support running on ARM64 machines [ # 63 ] ( https://github.com/oracle-actions/setup-java/issues/63 )
10+ - Support running on ARM64 machines
1111### Changed
1212- Default value of ` release ` input to Java ` 22 `
13+ - Run action with pre-installed Java 21
1314
1415## [ 1.3.3] - 2024-01-29
1516### Changed
Original file line number Diff line number Diff line change 4646 id : download
4747 shell : bash
4848 run : |
49- JAVA=$JAVA_HOME_17_X64 /bin/java
50- if [ ! -d "$JAVA_HOME_17_X64 " ]; then
51- JAVA=$JAVA_HOME_17_arm64 /bin/java
49+ JAVA=$JAVA_HOME_21_X64 /bin/java
50+ if [ ! -d "$JAVA_HOME_21_X64 " ]; then
51+ JAVA=$JAVA_HOME_21_arm64 /bin/java
5252 fi
5353 $JAVA --version
5454 DOWNLOAD=$GITHUB_ACTION_PATH/src/Download.java
You can’t perform that action at this time.
0 commit comments