Skip to content

Commit be35d69

Browse files
committed
Force the GHA runners to use Java 8
1 parent d31ccf2 commit be35d69

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build_macos.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
shell: bash
5656
run: echo "UNITY_EXE=${{ env.UNITY_ROOT_DIR }}/Unity.app/Contents/MacOS/Unity" >> $GITHUB_ENV
5757

58+
- name: Force Java 8
59+
shell: bash
60+
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
61+
5862
# Build .unitypackage
5963
- run: ./gradlew buildPlugin --info
6064

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ jobs:
128128
shell: bash
129129
run: echo "UNITY_EXE=${{ env.UNITY_ROOT_DIR }}/Unity.app/Contents/MacOS/Unity" >> $GITHUB_ENV
130130

131+
- name: Force Java 8
132+
shell: bash
133+
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
134+
131135
- name: Run tests
132136
shell: bash
133137
timeout-minutes: 60

0 commit comments

Comments
 (0)