Skip to content

Commit 944e73e

Browse files
authored
Switch to Java 17 in the CI (#19703)
2 parents 0800dec + 3c453ab commit 944e73e

File tree

1 file changed

+36
-19
lines changed

1 file changed

+36
-19
lines changed

Diff for: .github/workflows/ci.yaml

+36-19
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
test_non_bootstrapped:
4848
runs-on: [self-hosted, Linux]
4949
container:
50-
image: lampepfl/dotty:2021-03-22
50+
image: lampepfl/dotty:2023-11-07
5151
options: --cpu-shares 4096
5252
volumes:
5353
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -65,8 +65,8 @@ jobs:
6565
&& github.repository == 'lampepfl/dotty'
6666
)"
6767
steps:
68-
- name: Set JDK 16 as default
69-
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
68+
- name: Set JDK 17 as default
69+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
7070

7171
- name: Reset existing repo
7272
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
@@ -96,7 +96,7 @@ jobs:
9696
test:
9797
runs-on: [self-hosted, Linux]
9898
container:
99-
image: lampepfl/dotty:2021-03-22
99+
image: lampepfl/dotty:2023-11-07
100100
options: --cpu-shares 4096
101101
volumes:
102102
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -116,8 +116,8 @@ jobs:
116116
)"
117117

118118
steps:
119-
- name: Set JDK 16 as default
120-
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
119+
- name: Set JDK 17 as default
120+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
121121

122122
- name: Reset existing repo
123123
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
@@ -153,7 +153,7 @@ jobs:
153153
test_scala2_library_tasty:
154154
runs-on: [self-hosted, Linux]
155155
container:
156-
image: lampepfl/dotty:2021-03-22
156+
image: lampepfl/dotty:2023-11-07
157157
options: --cpu-shares 4096
158158
volumes:
159159
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -170,8 +170,8 @@ jobs:
170170
)"
171171

172172
steps:
173-
- name: Set JDK 16 as default
174-
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
173+
- name: Set JDK 17 as default
174+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
175175

176176
- name: Reset existing repo
177177
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
@@ -271,7 +271,7 @@ jobs:
271271
name: MiMa
272272
runs-on: [self-hosted, Linux]
273273
container:
274-
image: lampepfl/dotty:2021-03-22
274+
image: lampepfl/dotty:2023-11-07
275275
options: --cpu-shares 4096
276276
volumes:
277277
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -290,6 +290,9 @@ jobs:
290290
&& github.repository == 'lampepfl/dotty'
291291
)"
292292
steps:
293+
- name: Set JDK 17 as default
294+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
295+
293296
- name: Reset existing repo
294297
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
295298

@@ -317,7 +320,7 @@ jobs:
317320
community_build_a:
318321
runs-on: [self-hosted, Linux]
319322
container:
320-
image: lampepfl/dotty:2021-03-22
323+
image: lampepfl/dotty:2023-11-07
321324
options: --cpu-shares 4096
322325
volumes:
323326
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -338,6 +341,8 @@ jobs:
338341
)"
339342

340343
steps:
344+
- name: Set JDK 8 as default
345+
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
341346
- name: Reset existing repo
342347
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
343348

@@ -355,6 +360,7 @@ jobs:
355360

356361
- name: Test
357362
run: |
363+
git config --global --add safe.directory /__w/dotty/dotty
358364
git submodule sync
359365
git submodule update --init --recursive --jobs 7
360366
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -366,7 +372,7 @@ jobs:
366372
community_build_b:
367373
runs-on: [self-hosted, Linux]
368374
container:
369-
image: lampepfl/dotty:2021-03-22
375+
image: lampepfl/dotty:2023-11-07
370376
options: --cpu-shares 4096
371377
volumes:
372378
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -387,6 +393,8 @@ jobs:
387393
)"
388394

389395
steps:
396+
- name: Set JDK 8 as default
397+
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
390398
- name: Reset existing repo
391399
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
392400

@@ -404,6 +412,7 @@ jobs:
404412

405413
- name: Test
406414
run: |
415+
git config --global --add safe.directory /__w/dotty/dotty
407416
git submodule sync
408417
git submodule update --init --recursive --jobs 7
409418
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -415,7 +424,7 @@ jobs:
415424
community_build_c:
416425
runs-on: [self-hosted, Linux]
417426
container:
418-
image: lampepfl/dotty:2020-11-19
427+
image: lampepfl/dotty:2023-11-07
419428
options: --cpu-shares 4096
420429
volumes:
421430
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -436,6 +445,8 @@ jobs:
436445
)"
437446

438447
steps:
448+
- name: Set JDK 8 as default
449+
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
439450
- name: Reset existing repo
440451
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
441452

@@ -453,6 +464,7 @@ jobs:
453464

454465
- name: Test
455466
run: |
467+
git config --global --add safe.directory /__w/dotty/dotty
456468
git submodule sync
457469
git submodule update --init --recursive --jobs 7
458470
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -464,7 +476,7 @@ jobs:
464476
test_sbt:
465477
runs-on: [self-hosted, Linux]
466478
container:
467-
image: lampepfl/dotty:2021-03-22
479+
image: lampepfl/dotty:2023-11-07
468480
options: --cpu-shares 4096
469481
volumes:
470482
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -483,6 +495,9 @@ jobs:
483495
)"
484496

485497
steps:
498+
- name: Set JDK 17 as default
499+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
500+
486501
- name: Reset existing repo
487502
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
488503

@@ -504,7 +519,7 @@ jobs:
504519
test_java8:
505520
runs-on: [self-hosted, Linux]
506521
container:
507-
image: lampepfl/dotty:2021-03-22
522+
image: lampepfl/dotty:2023-11-07
508523
options: --cpu-shares 4096
509524
volumes:
510525
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -558,7 +573,7 @@ jobs:
558573
publish_nightly:
559574
runs-on: [self-hosted, Linux]
560575
container:
561-
image: lampepfl/dotty:2021-03-22
576+
image: lampepfl/dotty:2023-11-07
562577
options: --cpu-shares 4096
563578
volumes:
564579
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -574,6 +589,8 @@ jobs:
574589
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
575590

576591
steps:
592+
- name: Set JDK 17 as default
593+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
577594
- name: Reset existing repo
578595
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
579596

@@ -609,7 +626,7 @@ jobs:
609626
nightly_documentation:
610627
runs-on: [self-hosted, Linux]
611628
container:
612-
image: lampepfl/dotty:2021-03-22
629+
image: lampepfl/dotty:2023-11-07
613630
options: --cpu-shares 4096
614631
volumes:
615632
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -660,7 +677,7 @@ jobs:
660677
contents: write # for actions/create-release to create a release
661678
runs-on: [self-hosted, Linux]
662679
container:
663-
image: lampepfl/dotty:2021-03-22
680+
image: lampepfl/dotty:2023-11-07
664681
options: --cpu-shares 4096
665682
volumes:
666683
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -748,7 +765,7 @@ jobs:
748765
open_issue_on_failure:
749766
runs-on: [self-hosted, Linux]
750767
container:
751-
image: lampepfl/dotty:2021-03-22
768+
image: lampepfl/dotty:2023-11-07
752769
needs: [nightly_documentation, test_windows_full]
753770
# The `failure()` expression is true iff at least one of the dependencies
754771
# of this job (including transitive dependencies) has failed.

0 commit comments

Comments
 (0)