Skip to content

Commit 62cb0c6

Browse files
committed
Switch to Java 17 in the CI
1 parent e96cb18 commit 62cb0c6

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

.github/workflows/ci.yaml

+27-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
@@ -317,7 +317,7 @@ jobs:
317317
community_build_a:
318318
runs-on: [self-hosted, Linux]
319319
container:
320-
image: lampepfl/dotty:2021-03-22
320+
image: lampepfl/dotty:2023-11-07
321321
options: --cpu-shares 4096
322322
volumes:
323323
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -355,6 +355,7 @@ jobs:
355355

356356
- name: Test
357357
run: |
358+
git config --global --add safe.directory /__w/dotty/dotty
358359
git submodule sync
359360
git submodule update --init --recursive --jobs 7
360361
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -366,7 +367,7 @@ jobs:
366367
community_build_b:
367368
runs-on: [self-hosted, Linux]
368369
container:
369-
image: lampepfl/dotty:2021-03-22
370+
image: lampepfl/dotty:2023-11-07
370371
options: --cpu-shares 4096
371372
volumes:
372373
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -404,6 +405,7 @@ jobs:
404405

405406
- name: Test
406407
run: |
408+
git config --global --add safe.directory /__w/dotty/dotty
407409
git submodule sync
408410
git submodule update --init --recursive --jobs 7
409411
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -415,7 +417,7 @@ jobs:
415417
community_build_c:
416418
runs-on: [self-hosted, Linux]
417419
container:
418-
image: lampepfl/dotty:2020-11-19
420+
image: lampepfl/dotty:2023-11-07
419421
options: --cpu-shares 4096
420422
volumes:
421423
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -453,6 +455,7 @@ jobs:
453455

454456
- name: Test
455457
run: |
458+
git config --global --add safe.directory /__w/dotty/dotty
456459
git submodule sync
457460
git submodule update --init --recursive --jobs 7
458461
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -464,7 +467,7 @@ jobs:
464467
test_sbt:
465468
runs-on: [self-hosted, Linux]
466469
container:
467-
image: lampepfl/dotty:2021-03-22
470+
image: lampepfl/dotty:2023-11-07
468471
options: --cpu-shares 4096
469472
volumes:
470473
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -483,6 +486,9 @@ jobs:
483486
)"
484487

485488
steps:
489+
- name: Set JDK 17 as default
490+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
491+
486492
- name: Reset existing repo
487493
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
488494

@@ -504,7 +510,7 @@ jobs:
504510
test_java8:
505511
runs-on: [self-hosted, Linux]
506512
container:
507-
image: lampepfl/dotty:2021-03-22
513+
image: lampepfl/dotty:2023-11-07
508514
options: --cpu-shares 4096
509515
volumes:
510516
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -558,7 +564,7 @@ jobs:
558564
publish_nightly:
559565
runs-on: [self-hosted, Linux]
560566
container:
561-
image: lampepfl/dotty:2021-03-22
567+
image: lampepfl/dotty:2023-11-07
562568
options: --cpu-shares 4096
563569
volumes:
564570
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -574,6 +580,8 @@ jobs:
574580
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
575581

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

@@ -609,7 +617,7 @@ jobs:
609617
nightly_documentation:
610618
runs-on: [self-hosted, Linux]
611619
container:
612-
image: lampepfl/dotty:2021-03-22
620+
image: lampepfl/dotty:2023-11-07
613621
options: --cpu-shares 4096
614622
volumes:
615623
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -660,7 +668,7 @@ jobs:
660668
contents: write # for actions/create-release to create a release
661669
runs-on: [self-hosted, Linux]
662670
container:
663-
image: lampepfl/dotty:2021-03-22
671+
image: lampepfl/dotty:2023-11-07
664672
options: --cpu-shares 4096
665673
volumes:
666674
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -748,7 +756,7 @@ jobs:
748756
open_issue_on_failure:
749757
runs-on: [self-hosted, Linux]
750758
container:
751-
image: lampepfl/dotty:2021-03-22
759+
image: lampepfl/dotty:2023-11-07
752760
needs: [nightly_documentation, test_windows_full]
753761
# The `failure()` expression is true iff at least one of the dependencies
754762
# of this job (including transitive dependencies) has failed.

0 commit comments

Comments
 (0)