18
18
- ' *'
19
19
branches-ignore :
20
20
- ' gh-readonly-queue/**'
21
+ - ' release-**'
22
+ - ' lts-**'
21
23
pull_request :
22
24
merge_group :
23
25
schedule :
@@ -70,13 +72,13 @@ jobs:
70
72
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
71
73
72
74
- name : Checkout cleanup script
73
- uses : actions/checkout@v3
75
+ uses : actions/checkout@v4
74
76
75
77
- name : Cleanup
76
78
run : .github/workflows/cleanup.sh
77
79
78
80
- name : Git Checkout
79
- uses : actions/checkout@v3
81
+ uses : actions/checkout@v4
80
82
81
83
- name : Add SBT proxy repositories
82
84
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -121,27 +123,72 @@ jobs:
121
123
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
122
124
123
125
- name : Checkout cleanup script
124
- uses : actions/checkout@v3
126
+ uses : actions/checkout@v4
125
127
126
128
- name : Cleanup
127
129
run : .github/workflows/cleanup.sh
128
130
129
131
- name : Git Checkout
130
- uses : actions/checkout@v3
132
+ uses : actions/checkout@v4
131
133
132
134
- name : Add SBT proxy repositories
133
135
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
134
136
135
137
- name : Cmd Tests
136
138
run : |
137
- ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test: run ;stdlib-bootstrapped -tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
139
+ ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;scala2-library-tasty-tests/ run ;scala2-library -tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
138
140
./project/scripts/cmdTests
139
141
./project/scripts/bootstrappedOnlyCmdTests
140
142
141
143
- name : Scala.js Test
142
144
run : |
143
145
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
144
146
147
+ - name : Test with Scala 2 library TASTy (fast)
148
+ run : ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;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
149
+
150
+ test_scala2_library_tasty :
151
+ runs-on : [self-hosted, Linux]
152
+ container :
153
+ image : lampepfl/dotty:2021-03-22
154
+ options : --cpu-shares 4096
155
+ volumes :
156
+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
157
+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
158
+ - ${{ github.workspace }}/../../cache/general:/root/.cache
159
+ if : " github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
160
+ || (
161
+ github.event_name == 'pull_request'
162
+ && contains(github.event.pull_request.body, '[test_scala2_library_tasty]')
163
+ )
164
+ || (
165
+ github.event_name == 'workflow_dispatch'
166
+ && github.repository == 'lampepfl/dotty'
167
+ )"
168
+
169
+ steps :
170
+ - name : Set JDK 16 as default
171
+ run : echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
172
+
173
+ - name : Reset existing repo
174
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
175
+
176
+ - name : Checkout cleanup script
177
+ uses : actions/checkout@v4
178
+
179
+ - name : Cleanup
180
+ run : .github/workflows/cleanup.sh
181
+
182
+ - name : Git Checkout
183
+ uses : actions/checkout@v4
184
+
185
+ - name : Add SBT proxy repositories
186
+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
187
+
188
+ - name : Test with Scala 2 library TASTy
189
+ run : ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;scala3-bootstrapped/test"
190
+
191
+
145
192
test_windows_fast :
146
193
runs-on : [self-hosted, Windows]
147
194
if : " (
@@ -161,7 +208,7 @@ jobs:
161
208
shell : cmd
162
209
163
210
- name : Git Checkout
164
- uses : actions/checkout@v3
211
+ uses : actions/checkout@v4
165
212
166
213
- name : Test
167
214
run : sbt ";scala3-bootstrapped/compile"
@@ -203,7 +250,7 @@ jobs:
203
250
shell : cmd
204
251
205
252
- name : Git Checkout
206
- uses : actions/checkout@v3
253
+ uses : actions/checkout@v4
207
254
208
255
- name : Test
209
256
run : sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
@@ -240,20 +287,25 @@ jobs:
240
287
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
241
288
242
289
- name : Checkout cleanup script
243
- uses : actions/checkout@v3
290
+ uses : actions/checkout@v4
244
291
245
292
- name : Cleanup
246
293
run : .github/workflows/cleanup.sh
247
294
248
295
- name : Git Checkout
249
- uses : actions/checkout@v3
296
+ uses : actions/checkout@v4
250
297
251
298
- name : Add SBT proxy repositories
252
299
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
253
300
254
301
- name : MiMa
255
302
run : |
256
- ./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues"
303
+ ./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues; scala2-library-bootstrapped/mimaReportBinaryIssues"
304
+
305
+ - name : TASTy MiMa
306
+ run : |
307
+ # This script cleans the compiler and recompiles it from scratch (keep as last run)
308
+ ./project/scripts/scala2-library-tasty-mima.sh
257
309
258
310
community_build_a :
259
311
runs-on : [self-hosted, Linux]
@@ -283,13 +335,13 @@ jobs:
283
335
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
284
336
285
337
- name : Checkout cleanup script
286
- uses : actions/checkout@v3
338
+ uses : actions/checkout@v4
287
339
288
340
- name : Cleanup
289
341
run : .github/workflows/cleanup.sh
290
342
291
343
- name : Git Checkout
292
- uses : actions/checkout@v3
344
+ uses : actions/checkout@v4
293
345
294
346
- name : Add SBT proxy repositories
295
347
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -332,13 +384,13 @@ jobs:
332
384
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
333
385
334
386
- name : Checkout cleanup script
335
- uses : actions/checkout@v3
387
+ uses : actions/checkout@v4
336
388
337
389
- name : Cleanup
338
390
run : .github/workflows/cleanup.sh
339
391
340
392
- name : Git Checkout
341
- uses : actions/checkout@v3
393
+ uses : actions/checkout@v4
342
394
343
395
- name : Add SBT proxy repositories
344
396
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -381,13 +433,13 @@ jobs:
381
433
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
382
434
383
435
- name : Checkout cleanup script
384
- uses : actions/checkout@v3
436
+ uses : actions/checkout@v4
385
437
386
438
- name : Cleanup
387
439
run : .github/workflows/cleanup.sh
388
440
389
441
- name : Git Checkout
390
- uses : actions/checkout@v3
442
+ uses : actions/checkout@v4
391
443
392
444
- name : Add SBT proxy repositories
393
445
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -428,13 +480,13 @@ jobs:
428
480
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
429
481
430
482
- name : Checkout cleanup script
431
- uses : actions/checkout@v3
483
+ uses : actions/checkout@v4
432
484
433
485
- name : Cleanup
434
486
run : .github/workflows/cleanup.sh
435
487
436
488
- name : Git Checkout
437
- uses : actions/checkout@v3
489
+ uses : actions/checkout@v4
438
490
439
491
- name : Add SBT proxy repositories
440
492
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -475,20 +527,20 @@ jobs:
475
527
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
476
528
477
529
- name : Checkout cleanup script
478
- uses : actions/checkout@v3
530
+ uses : actions/checkout@v4
479
531
480
532
- name : Cleanup
481
533
run : .github/workflows/cleanup.sh
482
534
483
535
- name : Git Checkout
484
- uses : actions/checkout@v3
536
+ uses : actions/checkout@v4
485
537
486
538
- name : Add SBT proxy repositories
487
539
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
488
540
489
541
- name : Test
490
542
run : |
491
- ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test: run ;stdlib-bootstrapped -tasty-tests/test"
543
+ ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;scala2-library-tasty-tests/ run ;scala2-library -tasty-tests/test"
492
544
./project/scripts/cmdTests
493
545
./project/scripts/bootstrappedOnlyCmdTests
494
546
@@ -519,13 +571,13 @@ jobs:
519
571
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
520
572
521
573
- name : Checkout cleanup script
522
- uses : actions/checkout@v3
574
+ uses : actions/checkout@v4
523
575
524
576
- name : Cleanup
525
577
run : .github/workflows/cleanup.sh
526
578
527
579
- name : Git Checkout
528
- uses : actions/checkout@v3
580
+ uses : actions/checkout@v4
529
581
530
582
- name : Add SBT proxy repositories
531
583
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -573,13 +625,13 @@ jobs:
573
625
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
574
626
575
627
- name : Checkout cleanup script
576
- uses : actions/checkout@v3
628
+ uses : actions/checkout@v4
577
629
578
630
- name : Cleanup
579
631
run : .github/workflows/cleanup.sh
580
632
581
633
- name : Git Checkout
582
- uses : actions/checkout@v3
634
+ uses : actions/checkout@v4
583
635
584
636
- name : Add SBT proxy repositories
585
637
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -623,13 +675,13 @@ jobs:
623
675
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
624
676
625
677
- name : Checkout cleanup script
626
- uses : actions/checkout@v3
678
+ uses : actions/checkout@v4
627
679
628
680
- name : Cleanup
629
681
run : .github/workflows/cleanup.sh
630
682
631
683
- name : Git Checkout
632
- uses : actions/checkout@v3
684
+ uses : actions/checkout@v4
633
685
634
686
- name : Add SBT proxy repositories
635
687
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -696,7 +748,7 @@ jobs:
696
748
if : " failure() && github.event_name == 'schedule'"
697
749
steps :
698
750
- name : Checkout issue template
699
- uses : actions/checkout@v3
751
+ uses : actions/checkout@v4
700
752
701
753
- name : Open an issue
702
754
uses : JasonEtco/create-an-issue@v2
0 commit comments