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
6565 && github.repository == 'scala/scala3'
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 # # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
7272 - name : Reset existing repo
9999 test :
100100 runs-on : [self-hosted, Linux]
101101 container :
102- image : lampepfl/dotty:2021-03-22
102+ image : lampepfl/dotty:2023-11-07
103103 options : --cpu-shares 4096
104104 volumes :
105105 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -119,8 +119,8 @@ jobs:
119119 )"
120120
121121 steps :
122- - name : Set JDK 16 as default
123- run : echo "/usr/lib/jvm/java-16 -openjdk-amd64/bin" >> $GITHUB_PATH
122+ - name : Set JDK 17 as default
123+ run : echo "/usr/lib/jvm/java-17 -openjdk-amd64/bin" >> $GITHUB_PATH
124124
125125 - name : Reset existing repo
126126 run : |
@@ -141,7 +141,7 @@ jobs:
141141
142142 - name : Cmd Tests
143143 run : |
144- ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*; scala2-library-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
144+ ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
145145 ./project/scripts/cmdTests
146146 ./project/scripts/bootstrappedOnlyCmdTests
147147
@@ -153,12 +153,12 @@ jobs:
153153 run : ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty ;scala3-bootstrapped/testCompilation i5; scala3-bootstrapped/testCompilation tests/run/typelevel-peano.scala; scala3-bootstrapped/testOnly dotty.tools.backend.jvm.DottyBytecodeTests" # only test a subset of test to avoid doubling the CI execution time
154154
155155 - name : Test with Scala 2 library with CC TASTy (fast)
156- run : ./project/scripts/sbt "scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"
156+ run : ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"
157157
158158 test_scala2_library_tasty :
159159 runs-on : [self-hosted, Linux]
160160 container :
161- image : lampepfl/dotty:2021-03-22
161+ image : lampepfl/dotty:2023-11-07
162162 options : --cpu-shares 4096
163163 volumes :
164164 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -175,8 +175,8 @@ jobs:
175175 )"
176176
177177 steps :
178- - name : Set JDK 16 as default
179- run : echo "/usr/lib/jvm/java-16 -openjdk-amd64/bin" >> $GITHUB_PATH
178+ - name : Set JDK 17 as default
179+ run : echo "/usr/lib/jvm/java-17 -openjdk-amd64/bin" >> $GITHUB_PATH
180180
181181 - name : Reset existing repo
182182 run : |
@@ -198,9 +198,8 @@ jobs:
198198 - name : Test with Scala 2 library TASTy
199199 run : ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty ;scala3-bootstrapped/test"
200200
201- # TODO test all the test configurations in non-CC library (currently disabled due to bug while loading the library)
202- # - name: Test with Scala 2 library with CC TASTy
203- # run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty ;scala3-bootstrapped/test"
201+ - name : Test with Scala 2 library with CC TASTy
202+ run : ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty ;scala3-bootstrapped/test"
204203
205204
206205 test_windows_fast :
@@ -227,7 +226,7 @@ jobs:
227226 uses : actions/checkout@v4
228227
229228 - name : Test
230- run : sbt ";scala3-bootstrapped/compile"
229+ run : sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/testCompilation "
231230 shell : cmd
232231
233232 - name : build binary
@@ -282,7 +281,7 @@ jobs:
282281 name : MiMa
283282 runs-on : [self-hosted, Linux]
284283 container :
285- image : lampepfl/dotty:2021-03-22
284+ image : lampepfl/dotty:2023-11-07
286285 options : --cpu-shares 4096
287286 volumes :
288287 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -301,6 +300,9 @@ jobs:
301300 && github.repository == 'scala/scala3'
302301 )"
303302 steps :
303+ - name : Set JDK 17 as default
304+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
305+
304306 - name : Reset existing repo
305307 run : |
306308 git config --global --add safe.directory /__w/scala3/scala3
@@ -330,7 +332,7 @@ jobs:
330332 community_build_a :
331333 runs-on : [self-hosted, Linux]
332334 container :
333- image : lampepfl/dotty:2021-03-22
335+ image : lampepfl/dotty:2023-11-07
334336 options : --cpu-shares 4096
335337 volumes :
336338 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -351,6 +353,11 @@ jobs:
351353 )"
352354
353355 steps :
356+ # #####################################################################################
357+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ##
358+ # #####################################################################################
359+ - name : Set JDK 8 as default
360+ run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
354361 - name : Reset existing repo
355362 run : |
356363 git config --global --add safe.directory /__w/scala3/scala3
@@ -382,7 +389,7 @@ jobs:
382389 community_build_b :
383390 runs-on : [self-hosted, Linux]
384391 container :
385- image : lampepfl/dotty:2021-03-22
392+ image : lampepfl/dotty:2023-11-07
386393 options : --cpu-shares 4096
387394 volumes :
388395 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -403,6 +410,11 @@ jobs:
403410 )"
404411
405412 steps :
413+ # #####################################################################################
414+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ##
415+ # #####################################################################################
416+ - name : Set JDK 8 as default
417+ run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
406418 - name : Reset existing repo
407419 run : |
408420 git config --global --add safe.directory /__w/scala3/scala3
@@ -434,7 +446,7 @@ jobs:
434446 community_build_c :
435447 runs-on : [self-hosted, Linux]
436448 container :
437- image : lampepfl/dotty:2020 -11-19
449+ image : lampepfl/dotty:2023 -11-07
438450 options : --cpu-shares 4096
439451 volumes :
440452 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -455,6 +467,11 @@ jobs:
455467 )"
456468
457469 steps :
470+ # #####################################################################################
471+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ##
472+ # #####################################################################################
473+ - name : Set JDK 8 as default
474+ run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
458475 - name : Reset existing repo
459476 run : |
460477 git config --global --add safe.directory /__w/scala3/scala3
@@ -486,7 +503,7 @@ jobs:
486503 test_sbt :
487504 runs-on : [self-hosted, Linux]
488505 container :
489- image : lampepfl/dotty:2021-03-22
506+ image : lampepfl/dotty:2023-11-07
490507 options : --cpu-shares 4096
491508 volumes :
492509 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -505,6 +522,9 @@ jobs:
505522 )"
506523
507524 steps :
525+ - name : Set JDK 17 as default
526+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
527+
508528 - name : Reset existing repo
509529 run : |
510530 git config --global --add safe.directory /__w/scala3/scala3
@@ -528,7 +548,7 @@ jobs:
528548 test_java8 :
529549 runs-on : [self-hosted, Linux]
530550 container :
531- image : lampepfl/dotty:2021-03-22
551+ image : lampepfl/dotty:2023-11-07
532552 options : --cpu-shares 4096
533553 volumes :
534554 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -551,6 +571,9 @@ jobs:
551571 )"
552572
553573 steps :
574+ # ###################################################################################
575+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. THIS TEST IS SPECIFIC FOR JAVA 8 ##
576+ # ###################################################################################
554577 - name : Set JDK 8 as default
555578 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
556579
@@ -573,7 +596,7 @@ jobs:
573596
574597 - name : Test
575598 run : |
576- ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*; scala2-library-tasty-tests/test "
599+ ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/*"
577600 ./project/scripts/cmdTests
578601 ./project/scripts/bootstrappedOnlyCmdTests
579602
@@ -584,7 +607,7 @@ jobs:
584607 publish_nightly :
585608 runs-on : [self-hosted, Linux]
586609 container :
587- image : lampepfl/dotty:2021-03-22
610+ image : lampepfl/dotty:2023-11-07
588611 options : --cpu-shares 4096
589612 volumes :
590613 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -600,6 +623,11 @@ jobs:
600623 SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
601624
602625 steps :
626+ # #####################################################################################
627+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ##
628+ # #####################################################################################
629+ - name : Set JDK 8 as default
630+ run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
603631 - name : Reset existing repo
604632 run : |
605633 git config --global --add safe.directory /__w/scala3/scala3
@@ -637,7 +665,7 @@ jobs:
637665 nightly_documentation :
638666 runs-on : [self-hosted, Linux]
639667 container :
640- image : lampepfl/dotty:2021-03-22
668+ image : lampepfl/dotty:2023-11-07
641669 options : --cpu-shares 4096
642670 volumes :
643671 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -691,7 +719,7 @@ jobs:
691719 contents : write # for actions/create-release to create a release
692720 runs-on : [self-hosted, Linux]
693721 container :
694- image : lampepfl/dotty:2021-03-22
722+ image : lampepfl/dotty:2023-11-07
695723 options : --cpu-shares 4096
696724 volumes :
697725 - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -709,6 +737,11 @@ jobs:
709737 SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
710738
711739 steps :
740+ # #####################################################################################
741+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ##
742+ # #####################################################################################
743+ - name : Set JDK 8 as default
744+ run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
712745 - name : Reset existing repo
713746 run : |
714747 git config --global --add safe.directory /__w/scala3/scala3
@@ -781,7 +814,7 @@ jobs:
781814 open_issue_on_failure :
782815 runs-on : [self-hosted, Linux]
783816 container :
784- image : lampepfl/dotty:2021-03-22
817+ image : lampepfl/dotty:2023-11-07
785818 needs : [nightly_documentation, test_windows_full]
786819 # The `failure()` expression is true iff at least one of the dependencies
787820 # of this job (including transitive dependencies) has failed.
0 commit comments