1818 - ' *'
1919 branches-ignore :
2020 - ' gh-readonly-queue/**'
21+ - ' release-**'
22+ - ' lts-**'
2123 pull_request :
2224 merge_group :
2325 schedule :
@@ -70,13 +72,13 @@ jobs:
7072 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
7173
7274 - name : Checkout cleanup script
73- uses : actions/checkout@v3
75+ uses : actions/checkout@v4
7476
7577 - name : Cleanup
7678 run : .github/workflows/cleanup.sh
7779
7880 - name : Git Checkout
79- uses : actions/checkout@v3
81+ uses : actions/checkout@v4
8082
8183 - name : Add SBT proxy repositories
8284 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -121,27 +123,72 @@ jobs:
121123 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
122124
123125 - name : Checkout cleanup script
124- uses : actions/checkout@v3
126+ uses : actions/checkout@v4
125127
126128 - name : Cleanup
127129 run : .github/workflows/cleanup.sh
128130
129131 - name : Git Checkout
130- uses : actions/checkout@v3
132+ uses : actions/checkout@v4
131133
132134 - name : Add SBT proxy repositories
133135 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
134136
135137 - name : Cmd Tests
136138 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"
138140 ./project/scripts/cmdTests
139141 ./project/scripts/bootstrappedOnlyCmdTests
140142
141143 - name : Scala.js Test
142144 run : |
143145 ./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
144146
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+
145192 test_windows_fast :
146193 runs-on : [self-hosted, Windows]
147194 if : " (
@@ -161,7 +208,7 @@ jobs:
161208 shell : cmd
162209
163210 - name : Git Checkout
164- uses : actions/checkout@v3
211+ uses : actions/checkout@v4
165212
166213 - name : Test
167214 run : sbt ";scala3-bootstrapped/compile"
@@ -203,7 +250,7 @@ jobs:
203250 shell : cmd
204251
205252 - name : Git Checkout
206- uses : actions/checkout@v3
253+ uses : actions/checkout@v4
207254
208255 - name : Test
209256 run : sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
@@ -240,20 +287,25 @@ jobs:
240287 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
241288
242289 - name : Checkout cleanup script
243- uses : actions/checkout@v3
290+ uses : actions/checkout@v4
244291
245292 - name : Cleanup
246293 run : .github/workflows/cleanup.sh
247294
248295 - name : Git Checkout
249- uses : actions/checkout@v3
296+ uses : actions/checkout@v4
250297
251298 - name : Add SBT proxy repositories
252299 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
253300
254301 - name : MiMa
255302 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
257309
258310 community_build_a :
259311 runs-on : [self-hosted, Linux]
@@ -283,13 +335,13 @@ jobs:
283335 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
284336
285337 - name : Checkout cleanup script
286- uses : actions/checkout@v3
338+ uses : actions/checkout@v4
287339
288340 - name : Cleanup
289341 run : .github/workflows/cleanup.sh
290342
291343 - name : Git Checkout
292- uses : actions/checkout@v3
344+ uses : actions/checkout@v4
293345
294346 - name : Add SBT proxy repositories
295347 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -332,13 +384,13 @@ jobs:
332384 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
333385
334386 - name : Checkout cleanup script
335- uses : actions/checkout@v3
387+ uses : actions/checkout@v4
336388
337389 - name : Cleanup
338390 run : .github/workflows/cleanup.sh
339391
340392 - name : Git Checkout
341- uses : actions/checkout@v3
393+ uses : actions/checkout@v4
342394
343395 - name : Add SBT proxy repositories
344396 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -381,13 +433,13 @@ jobs:
381433 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
382434
383435 - name : Checkout cleanup script
384- uses : actions/checkout@v3
436+ uses : actions/checkout@v4
385437
386438 - name : Cleanup
387439 run : .github/workflows/cleanup.sh
388440
389441 - name : Git Checkout
390- uses : actions/checkout@v3
442+ uses : actions/checkout@v4
391443
392444 - name : Add SBT proxy repositories
393445 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -428,13 +480,13 @@ jobs:
428480 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
429481
430482 - name : Checkout cleanup script
431- uses : actions/checkout@v3
483+ uses : actions/checkout@v4
432484
433485 - name : Cleanup
434486 run : .github/workflows/cleanup.sh
435487
436488 - name : Git Checkout
437- uses : actions/checkout@v3
489+ uses : actions/checkout@v4
438490
439491 - name : Add SBT proxy repositories
440492 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -475,20 +527,20 @@ jobs:
475527 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
476528
477529 - name : Checkout cleanup script
478- uses : actions/checkout@v3
530+ uses : actions/checkout@v4
479531
480532 - name : Cleanup
481533 run : .github/workflows/cleanup.sh
482534
483535 - name : Git Checkout
484- uses : actions/checkout@v3
536+ uses : actions/checkout@v4
485537
486538 - name : Add SBT proxy repositories
487539 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
488540
489541 - name : Test
490542 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"
492544 ./project/scripts/cmdTests
493545 ./project/scripts/bootstrappedOnlyCmdTests
494546
@@ -519,13 +571,13 @@ jobs:
519571 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
520572
521573 - name : Checkout cleanup script
522- uses : actions/checkout@v3
574+ uses : actions/checkout@v4
523575
524576 - name : Cleanup
525577 run : .github/workflows/cleanup.sh
526578
527579 - name : Git Checkout
528- uses : actions/checkout@v3
580+ uses : actions/checkout@v4
529581
530582 - name : Add SBT proxy repositories
531583 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -573,13 +625,13 @@ jobs:
573625 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
574626
575627 - name : Checkout cleanup script
576- uses : actions/checkout@v3
628+ uses : actions/checkout@v4
577629
578630 - name : Cleanup
579631 run : .github/workflows/cleanup.sh
580632
581633 - name : Git Checkout
582- uses : actions/checkout@v3
634+ uses : actions/checkout@v4
583635
584636 - name : Add SBT proxy repositories
585637 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -623,13 +675,13 @@ jobs:
623675 run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
624676
625677 - name : Checkout cleanup script
626- uses : actions/checkout@v3
678+ uses : actions/checkout@v4
627679
628680 - name : Cleanup
629681 run : .github/workflows/cleanup.sh
630682
631683 - name : Git Checkout
632- uses : actions/checkout@v3
684+ uses : actions/checkout@v4
633685
634686 - name : Add SBT proxy repositories
635687 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -696,7 +748,7 @@ jobs:
696748 if : " failure() && github.event_name == 'schedule'"
697749 steps :
698750 - name : Checkout issue template
699- uses : actions/checkout@v3
751+ uses : actions/checkout@v4
700752
701753 - name : Open an issue
702754 uses : JasonEtco/create-an-issue@v2
0 commit comments