Skip to content

Commit 38a5aec

Browse files
committed
Try use JDK 11 as default
1 parent ef11f9b commit 38a5aec

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
container: lampepfl/dotty:2020-04-24
1616

1717
steps:
18+
- name: Set up JDK version
19+
run: echo "::add-path::/usr/lib/jvm/java-11-openjdk-amd64/bin"
20+
1821
- name: Checkout cleanup script
1922
uses: actions/checkout@v2
2023

@@ -55,6 +58,9 @@ jobs:
5558
container: lampepfl/dotty:2020-04-24
5659

5760
steps:
61+
- name: Set up JDK version
62+
run: echo "::add-path::/usr/lib/jvm/java-11-openjdk-amd64/bin"
63+
5864
- name: Checkout cleanup script
5965
uses: actions/checkout@v2
6066

@@ -95,6 +101,9 @@ jobs:
95101
container: lampepfl/dotty:2020-04-24
96102

97103
steps:
104+
- name: Set up JDK version
105+
run: echo "::add-path::/usr/lib/jvm/java-11-openjdk-amd64/bin"
106+
98107
- name: Checkout cleanup script
99108
uses: actions/checkout@v2
100109

@@ -174,7 +183,7 @@ jobs:
174183
- name: Test
175184
run: ./project/scripts/sbt sbt-dotty/scripted
176185

177-
test_java11:
186+
test_java8:
178187
runs-on: self-hosted
179188
container: lampepfl/dotty:2020-04-24
180189
if: (
@@ -216,13 +225,13 @@ jobs:
216225

217226
- name: Test
218227
run: |
219-
export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH"
228+
export PATH="/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin:$PATH"
220229
./project/scripts/sbt ";compile ;test"
221230
222231
publish_nightly:
223232
runs-on: self-hosted
224233
container: lampepfl/dotty:2020-04-24
225-
needs: [test, test_bootstrapped, community_build, test_sbt, test_java11]
234+
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
226235
if: github.event_name == 'schedule'
227236
env:
228237
NIGHTLYBUILD: yes
@@ -323,7 +332,7 @@ jobs:
323332
publish_release:
324333
runs-on: self-hosted
325334
container: lampepfl/dotty:2020-04-24
326-
needs: [test, test_bootstrapped, community_build, test_sbt, test_java11]
335+
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
327336
if: github.event_name == 'push' &&
328337
startsWith(github.event.ref, 'refs/tags/') &&
329338
!startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
@@ -475,7 +484,7 @@ jobs:
475484
publish_sbt_release:
476485
runs-on: self-hosted
477486
container: lampepfl/dotty:2020-04-24
478-
needs: [test, test_bootstrapped, community_build, test_sbt, test_java11]
487+
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
479488
if: github.event_name == 'push' &&
480489
startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
481490

0 commit comments

Comments
 (0)