actions: install JDK via brew
@@ -32,10 +32,6 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7 # Not needed with a .ruby-version file
- - uses: actions/setup-java@v2
- with:
- distribution: 'adopt' # Use AdoptOpenJDK
- java-version: '14'
- name: Install Dependencies
run: |
@@ -58,6 +54,7 @@ jobs:
swig \
yajl \
zeromq
+ brew install --cask adoptopenjdk
- name: Setup Build Environment
run: |
@@ -71,16 +68,12 @@ jobs:
cmake -E make_directory ${{runner.workspace}}/build
echo "INSTALL_DIR=${{runner.workspace}}/build/install" >> $GITHUB_ENV
echo "$INSTALL_DIR/bin" >> $GITHUB_PATH
- echo $JAVA_HOME || true
- which javac || true
- javac --version || true
+ export JAVA_HOME=$(/usr/libexec/java_home --failfast)
+ echo $JAVA_HOME
echo "$JAVA_HOME/bin" >> $GITHUB_PATH
which javac || true
javac --version || true
cat $JAVA_HOME/../Info.plist || true
- /usr/libexec/java_home --failfast || true
- export OTHER_JAVA_HOME=$(/usr/libexec/java_home --failfast) || true
- cat $OTHER_JAVA_HOME/../Info.plist || true
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
