47
47
test_non_bootstrapped :
48
48
runs-on : [self-hosted, Linux]
49
49
container :
50
- image : lampepfl/dotty:2021-03-22
50
+ image : lampepfl/dotty:2023-11-07
51
51
options : --cpu-shares 4096
52
52
volumes :
53
53
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
65
65
&& github.repository == 'scala/scala3'
66
66
)"
67
67
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
70
70
71
71
# # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
72
72
- name : Reset existing repo
99
99
test :
100
100
runs-on : [self-hosted, Linux]
101
101
container :
102
- image : lampepfl/dotty:2021-03-22
102
+ image : lampepfl/dotty:2023-11-07
103
103
options : --cpu-shares 4096
104
104
volumes :
105
105
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -119,8 +119,8 @@ jobs:
119
119
)"
120
120
121
121
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
124
124
125
125
- name : Reset existing repo
126
126
run : |
@@ -141,7 +141,7 @@ jobs:
141
141
142
142
- name : Cmd Tests
143
143
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"
145
145
./project/scripts/cmdTests
146
146
./project/scripts/bootstrappedOnlyCmdTests
147
147
@@ -153,12 +153,12 @@ jobs:
153
153
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
154
154
155
155
- 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"
157
157
158
158
test_scala2_library_tasty :
159
159
runs-on : [self-hosted, Linux]
160
160
container :
161
- image : lampepfl/dotty:2021-03-22
161
+ image : lampepfl/dotty:2023-11-07
162
162
options : --cpu-shares 4096
163
163
volumes :
164
164
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -175,8 +175,8 @@ jobs:
175
175
)"
176
176
177
177
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
180
180
181
181
- name : Reset existing repo
182
182
run : |
@@ -198,9 +198,8 @@ jobs:
198
198
- name : Test with Scala 2 library TASTy
199
199
run : ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty ;scala3-bootstrapped/test"
200
200
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"
204
203
205
204
206
205
test_windows_fast :
@@ -227,7 +226,7 @@ jobs:
227
226
uses : actions/checkout@v4
228
227
229
228
- name : Test
230
- run : sbt ";scala3-bootstrapped/compile"
229
+ run : sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/testCompilation "
231
230
shell : cmd
232
231
233
232
- name : build binary
@@ -282,7 +281,7 @@ jobs:
282
281
name : MiMa
283
282
runs-on : [self-hosted, Linux]
284
283
container :
285
- image : lampepfl/dotty:2021-03-22
284
+ image : lampepfl/dotty:2023-11-07
286
285
options : --cpu-shares 4096
287
286
volumes :
288
287
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -301,6 +300,9 @@ jobs:
301
300
&& github.repository == 'scala/scala3'
302
301
)"
303
302
steps :
303
+ - name : Set JDK 17 as default
304
+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
305
+
304
306
- name : Reset existing repo
305
307
run : |
306
308
git config --global --add safe.directory /__w/scala3/scala3
@@ -330,7 +332,7 @@ jobs:
330
332
community_build_a :
331
333
runs-on : [self-hosted, Linux]
332
334
container :
333
- image : lampepfl/dotty:2021-03-22
335
+ image : lampepfl/dotty:2023-11-07
334
336
options : --cpu-shares 4096
335
337
volumes :
336
338
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -351,6 +353,11 @@ jobs:
351
353
)"
352
354
353
355
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
354
361
- name : Reset existing repo
355
362
run : |
356
363
git config --global --add safe.directory /__w/scala3/scala3
@@ -382,7 +389,7 @@ jobs:
382
389
community_build_b :
383
390
runs-on : [self-hosted, Linux]
384
391
container :
385
- image : lampepfl/dotty:2021-03-22
392
+ image : lampepfl/dotty:2023-11-07
386
393
options : --cpu-shares 4096
387
394
volumes :
388
395
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -403,6 +410,11 @@ jobs:
403
410
)"
404
411
405
412
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
406
418
- name : Reset existing repo
407
419
run : |
408
420
git config --global --add safe.directory /__w/scala3/scala3
@@ -434,7 +446,7 @@ jobs:
434
446
community_build_c :
435
447
runs-on : [self-hosted, Linux]
436
448
container :
437
- image : lampepfl/dotty:2020 -11-19
449
+ image : lampepfl/dotty:2023 -11-07
438
450
options : --cpu-shares 4096
439
451
volumes :
440
452
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -455,6 +467,11 @@ jobs:
455
467
)"
456
468
457
469
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
458
475
- name : Reset existing repo
459
476
run : |
460
477
git config --global --add safe.directory /__w/scala3/scala3
@@ -486,7 +503,7 @@ jobs:
486
503
test_sbt :
487
504
runs-on : [self-hosted, Linux]
488
505
container :
489
- image : lampepfl/dotty:2021-03-22
506
+ image : lampepfl/dotty:2023-11-07
490
507
options : --cpu-shares 4096
491
508
volumes :
492
509
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -505,6 +522,9 @@ jobs:
505
522
)"
506
523
507
524
steps :
525
+ - name : Set JDK 17 as default
526
+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
527
+
508
528
- name : Reset existing repo
509
529
run : |
510
530
git config --global --add safe.directory /__w/scala3/scala3
@@ -528,7 +548,7 @@ jobs:
528
548
test_java8 :
529
549
runs-on : [self-hosted, Linux]
530
550
container :
531
- image : lampepfl/dotty:2021-03-22
551
+ image : lampepfl/dotty:2023-11-07
532
552
options : --cpu-shares 4096
533
553
volumes :
534
554
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -551,6 +571,9 @@ jobs:
551
571
)"
552
572
553
573
steps :
574
+ # ###################################################################################
575
+ # # WARNING: DO NOT CHANGE THE JAVA VERSION HERE. THIS TEST IS SPECIFIC FOR JAVA 8 ##
576
+ # ###################################################################################
554
577
- name : Set JDK 8 as default
555
578
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
556
579
@@ -573,7 +596,7 @@ jobs:
573
596
574
597
- name : Test
575
598
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/*"
577
600
./project/scripts/cmdTests
578
601
./project/scripts/bootstrappedOnlyCmdTests
579
602
@@ -584,7 +607,7 @@ jobs:
584
607
publish_nightly :
585
608
runs-on : [self-hosted, Linux]
586
609
container :
587
- image : lampepfl/dotty:2021-03-22
610
+ image : lampepfl/dotty:2023-11-07
588
611
options : --cpu-shares 4096
589
612
volumes :
590
613
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -600,6 +623,11 @@ jobs:
600
623
SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
601
624
602
625
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
603
631
- name : Reset existing repo
604
632
run : |
605
633
git config --global --add safe.directory /__w/scala3/scala3
@@ -637,7 +665,7 @@ jobs:
637
665
nightly_documentation :
638
666
runs-on : [self-hosted, Linux]
639
667
container :
640
- image : lampepfl/dotty:2021-03-22
668
+ image : lampepfl/dotty:2023-11-07
641
669
options : --cpu-shares 4096
642
670
volumes :
643
671
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -691,7 +719,7 @@ jobs:
691
719
contents : write # for actions/create-release to create a release
692
720
runs-on : [self-hosted, Linux]
693
721
container :
694
- image : lampepfl/dotty:2021-03-22
722
+ image : lampepfl/dotty:2023-11-07
695
723
options : --cpu-shares 4096
696
724
volumes :
697
725
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -709,6 +737,11 @@ jobs:
709
737
SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
710
738
711
739
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
712
745
- name : Reset existing repo
713
746
run : |
714
747
git config --global --add safe.directory /__w/scala3/scala3
@@ -781,7 +814,7 @@ jobs:
781
814
open_issue_on_failure :
782
815
runs-on : [self-hosted, Linux]
783
816
container :
784
- image : lampepfl/dotty:2021-03-22
817
+ image : lampepfl/dotty:2023-11-07
785
818
needs : [nightly_documentation, test_windows_full]
786
819
# The `failure()` expression is true iff at least one of the dependencies
787
820
# of this job (including transitive dependencies) has failed.
0 commit comments