actions: try to use Java 16 and set PATH, JAVA_HOME
@@ -64,6 +64,9 @@ jobs:
brew postinstall dbus
brew services restart dbus
cmake -E make_directory ${{runner.workspace}}/build
+ export JAVA_HOME=$(/usr/libexec/java_home -v 16)
+ echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
+ echo "$JAVA_HOME/bin" >> $GITHUB_PATH
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
