Skip to content

Commit 91a7422

Browse files
[CI] Fix Java setup on macOS. (#289)
1 parent 11c4130 commit 91a7422

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
with:
5252
distribution: 'zulu'
5353
java-version: ${{ matrix.java }}
54-
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux)
55-
if: runner.os == 'Linux'
54+
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux/macOS)
55+
if: runner.os == 'Linux' || runner.os == 'macOS'
5656
run: |
5757
java -Xinternalversion
5858
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
@@ -111,8 +111,8 @@ jobs:
111111
with:
112112
distribution: 'temurin'
113113
java-version: ${{ matrix.java }}
114-
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux)
115-
if: runner.os == 'Linux'
114+
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux/macOS)
115+
if: runner.os == 'Linux' || runner.os == 'macOS'
116116
run: |
117117
java -Xinternalversion
118118
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)