Skip to content

Commit bdfadac

Browse files
authored
Amend #4961, bump Java 21. (#4966)
This PR sets the `JAVA_HOME` env variable to `$JAVA_HOME_21_X64` so CMake and Maven picks up the right JVM for native CMake workflows.
1 parent 11f02a5 commit bdfadac

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/amd64_linux_cmake_java.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
sudo apt update
3333
sudo apt install -y ninja-build ccache swig
3434
swig -version
35-
- name: Check java
36-
run: java -version
35+
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
3736
3837
# RESTORING CACHES
3938
- name: Restore CMake dependency source code

.github/workflows/amd64_macos_cmake_java.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
run: |
3939
brew install ccache swig
4040
swig -version
41-
- name: Check java
42-
run: java -version
41+
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
4342
4443
# RESTORING CACHES
4544
- name: Restore CMake dependency source code

.github/workflows/arm64_macos_cmake_java.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
run: |
3939
brew install ccache swig
4040
swig -version
41-
- name: Check java
42-
run: java -version
41+
echo "JAVA_HOME=$JAVA_HOME_21_arm64" >> $GITHUB_ENV
4342
4443
# RESTORING CACHES
4544
- name: Restore CMake dependency source code

0 commit comments

Comments
 (0)