Skip to content

Commit d561c04

Browse files
committed
chore: add CI jobs to test scala3-compiler-bootstrapped and scala3-compiler-nonbootstrapped
1 parent 20ff42c commit d561c04

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
- name: Cmd Tests
150150
run: |
151151
./project/scripts/buildScalaBinary
152-
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
152+
./project/scripts/sbt ";scala3-bootstrapped/compile ;sbt-test/scripted scala2-compat/* ;scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
153153
./project/scripts/cmdTests
154154
./project/scripts/bootstrappedOnlyCmdTests
155155
@@ -181,7 +181,7 @@ jobs:
181181
uses: actions/checkout@v5
182182

183183
- name: Test
184-
run: sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/testCompilation; scala3-presentation-compiler/test; scala3-language-server/test"
184+
run: sbt ";scala3-bootstrapped/compile; scala3-presentation-compiler/test; scala3-language-server/test"
185185
shell: cmd
186186

187187
- name: build binary

.github/workflows/stdlib.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,42 @@ jobs:
284284
########################################### TEST JOBS ###########################################
285285
#################################################################################################
286286

287+
test-scala3-compiler-nonbootstrapped:
288+
runs-on: ubuntu-latest
289+
needs: [scala3-compiler-nonbootstrapped, tasty-core-nonbootstrapped, scala-library-nonbootstrapped]
290+
## The reference compiler generates wrong code for the non-bootstrapped stdlib, hence we cannot run tests on it at the moment
291+
if: false
292+
steps:
293+
- name: Git Checkout
294+
uses: actions/checkout@v5
295+
296+
- name: Set up JDK 17
297+
uses: actions/setup-java@v5
298+
with:
299+
distribution: 'temurin'
300+
java-version: 17
301+
cache: 'sbt'
302+
- uses: sbt/setup-sbt@v1
303+
- name: Test `scala3-compiler-nonbootstrapped`
304+
run: ./project/scripts/sbt scala3-compiler-nonbootstrapped-new/test
305+
306+
test-scala3-compiler-bootstrapped:
307+
runs-on: ubuntu-latest
308+
needs: [scala3-compiler-bootstrapped, tasty-core-bootstrapped, scala-library-bootstrapped, scala3-staging, scala3-tasty-inspector]
309+
steps:
310+
- name: Git Checkout
311+
uses: actions/checkout@v5
312+
313+
- name: Set up JDK 17
314+
uses: actions/setup-java@v5
315+
with:
316+
distribution: 'temurin'
317+
java-version: 17
318+
cache: 'sbt'
319+
- uses: sbt/setup-sbt@v1
320+
- name: Test `scala3-compiler-bootstrapped`
321+
run: ./project/scripts/sbt scala3-compiler-bootstrapped-new/test
322+
287323
test-scala3-sbt-bridge-nonbootstrapped:
288324
runs-on: ubuntu-latest
289325
needs: [scala3-sbt-bridge-nonbootstrapped]

0 commit comments

Comments
 (0)