|
51 | 51 | # text on stderr and so can break tests which check the output of a program).
|
52 | 52 |
|
53 | 53 | jobs:
|
54 |
| - test_non_bootstrapped: |
55 |
| - runs-on: [self-hosted, Linux] |
56 |
| - container: |
57 |
| - image: lampepfl/dotty:2024-10-18 |
58 |
| - options: --cpu-shares 4096 |
59 |
| - volumes: |
60 |
| - - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
61 |
| - - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
62 |
| - - ${{ github.workspace }}/../../cache/general:/root/.cache |
63 |
| - if: "github.event_name == 'schedule' && github.repository == 'scala/scala3' |
64 |
| - || github.event_name == 'push' |
65 |
| - || ( |
66 |
| - github.event_name == 'pull_request' |
67 |
| - && !contains(github.event.pull_request.body, '[skip ci]') |
68 |
| - && contains(github.event.pull_request.body, '[test_non_bootstrapped]') |
69 |
| - ) |
70 |
| - || ( |
71 |
| - github.event_name == 'workflow_dispatch' |
72 |
| - && github.repository == 'scala/scala3' |
73 |
| - )" |
74 |
| - steps: |
75 |
| - - name: Set JDK 17 as default |
76 |
| - run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH |
77 |
| - |
78 |
| - ## Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720) |
79 |
| - - name: Reset existing repo |
80 |
| - run: | |
81 |
| - git config --global --add safe.directory $GITHUB_WORKSPACE |
82 |
| - git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true |
83 |
| -
|
84 |
| - - name: Checkout cleanup script |
85 |
| - uses: actions/checkout@v5 |
86 |
| - |
87 |
| - - name: Cleanup |
88 |
| - run: .github/workflows/cleanup.sh |
89 |
| - |
90 |
| - - name: Git Checkout |
91 |
| - uses: actions/checkout@v5 |
92 |
| - |
93 |
| - - name: Add SBT proxy repositories |
94 |
| - run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
95 |
| - |
96 |
| - - name: Test |
97 |
| - # DON'T add dist/Universal/stage! |
98 |
| - # Adding dist/Universal/stage bootstraps the compiler |
99 |
| - # which undermines the point of these tests: |
100 |
| - # to quickly run the tests without the cost of bootstrapping |
101 |
| - # and also to run tests when the compiler doesn't bootstrap |
102 |
| - run: | |
103 |
| - ./project/scripts/sbt ";compile ;test" |
104 |
| - ./project/scripts/cmdTests |
105 |
| -
|
106 | 54 | test:
|
107 | 55 | runs-on: [self-hosted, Linux]
|
108 | 56 | container:
|
@@ -224,16 +172,8 @@ jobs:
|
224 | 172 | - name: Git Checkout
|
225 | 173 | uses: actions/checkout@v5
|
226 | 174 |
|
227 |
| - - name: build binary |
228 |
| - run: sbt "dist-win-x86_64/Universal/stage" |
229 |
| - shell: cmd |
230 |
| - |
231 | 175 | - name: Test
|
232 |
| - run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test" |
233 |
| - shell: cmd |
234 |
| - |
235 |
| - - name: Scala.js Test |
236 |
| - run: sbt ";sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test" |
| 176 | + run: sbt ";scala3-bootstrapped-new/compile ;scala3-compiler-bootstrapped-new/test" |
237 | 177 | shell: cmd
|
238 | 178 |
|
239 | 179 | community_build_a:
|
@@ -463,7 +403,7 @@ jobs:
|
463 | 403 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
464 | 404 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
465 | 405 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
466 |
| - needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, build-sdk-package, build-msi-package] |
| 406 | + needs: [test, community_build_a, community_build_b, community_build_c, test_sbt, build-sdk-package, build-msi-package] |
467 | 407 | if: "github.event_name == 'push'
|
468 | 408 | && startsWith(github.event.ref, 'refs/tags/')"
|
469 | 409 |
|
|
0 commit comments