|
53 | 53 | # text on stderr and so can break tests which check the output of a program).
|
54 | 54 |
|
55 | 55 | jobs:
|
| 56 | + build-non-bootstrapped: |
| 57 | + name: Build Non-Bootstrapped Compiler |
| 58 | + runs-on: [self-hosted, Linux] |
| 59 | + container: |
| 60 | + image: lampepfl/dotty:2024-10-18 |
| 61 | + options: --cpu-shares 4096 |
| 62 | + volumes: |
| 63 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
| 64 | + - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
| 65 | + - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
| 66 | + - ${{ github.workspace }}/../../cache/general:/root/.cache |
| 67 | + steps: |
| 68 | + - name: Set JDK 17 as default |
| 69 | + run: echo "${{ inputs.java-home }}/bin" >> $GITHUB_PATH |
| 70 | + - name: Checkout cleanup script |
| 71 | + uses: actions/checkout@v4 |
| 72 | + - name: Cleanup |
| 73 | + run: .github/workflows/cleanup.sh |
| 74 | + - name: Git Checkout |
| 75 | + uses: actions/checkout@v4 |
| 76 | + - name: Add SBT proxy repositories |
| 77 | + run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
| 78 | + - name: Compile Non-Bootstrapped Dotty |
| 79 | + run: ./project/scripts/sbt "; clean; compile" |
| 80 | + |
| 81 | + build-bootstrapped: |
| 82 | + name: Build Bootstrapped Compiler |
| 83 | + needs: build-non-bootstrapped |
| 84 | + runs-on: [self-hosted, Linux] |
| 85 | + container: |
| 86 | + image: lampepfl/dotty:2024-10-18 |
| 87 | + options: --cpu-shares 4096 |
| 88 | + volumes: |
| 89 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
| 90 | + - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
| 91 | + - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
| 92 | + - ${{ github.workspace }}/../../cache/general:/root/.cache |
| 93 | + steps: |
| 94 | + - name: Set JDK 17 as default |
| 95 | + run: echo "${{ inputs.java-home }}/bin" >> $GITHUB_PATH |
| 96 | + - name: Checkout cleanup script |
| 97 | + uses: actions/checkout@v4 |
| 98 | + - name: Cleanup |
| 99 | + run: .github/workflows/cleanup.sh |
| 100 | + - name: Git Checkout |
| 101 | + uses: actions/checkout@v4 |
| 102 | + - name: Add SBT proxy repositories |
| 103 | + run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
| 104 | + - name: Compile Bootstrapped Dotty |
| 105 | + run: ./project/scripts/sbt "; clean; scala3-bootstrapped/compile" |
| 106 | + |
56 | 107 | test_non_bootstrapped:
|
| 108 | + needs: build-non-bootstrapped |
57 | 109 | runs-on: [self-hosted, Linux]
|
58 | 110 | container:
|
59 | 111 | image: lampepfl/dotty:2024-10-18
|
60 | 112 | options: --cpu-shares 4096
|
61 | 113 | volumes:
|
| 114 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
62 | 115 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
63 | 116 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
64 | 117 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -106,11 +159,13 @@ jobs:
|
106 | 159 | ./project/scripts/cmdTests
|
107 | 160 |
|
108 | 161 | test:
|
| 162 | + needs: build-bootstrapped |
109 | 163 | runs-on: [self-hosted, Linux]
|
110 | 164 | container:
|
111 | 165 | image: lampepfl/dotty:2024-10-18
|
112 | 166 | options: --cpu-shares 4096
|
113 | 167 | volumes:
|
| 168 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
114 | 169 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
115 | 170 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
116 | 171 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -166,11 +221,13 @@ jobs:
|
166 | 221 | run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"
|
167 | 222 |
|
168 | 223 | test_scala2_library_tasty:
|
| 224 | + needs: build-bootstrapped |
169 | 225 | runs-on: [self-hosted, Linux]
|
170 | 226 | container:
|
171 | 227 | image: lampepfl/dotty:2024-10-18
|
172 | 228 | options: --cpu-shares 4096
|
173 | 229 | volumes:
|
| 230 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
174 | 231 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
175 | 232 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
176 | 233 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -293,11 +350,13 @@ jobs:
|
293 | 350 |
|
294 | 351 | mima:
|
295 | 352 | name: MiMa
|
| 353 | + needs: build-bootstrapped |
296 | 354 | runs-on: [self-hosted, Linux]
|
297 | 355 | container:
|
298 | 356 | image: lampepfl/dotty:2024-10-18
|
299 | 357 | options: --cpu-shares 4096
|
300 | 358 | volumes:
|
| 359 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
301 | 360 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
302 | 361 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
303 | 362 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -344,11 +403,13 @@ jobs:
|
344 | 403 | ./project/scripts/scala2-library-tasty-mima.sh
|
345 | 404 |
|
346 | 405 | community_build_a:
|
| 406 | + needs: build-bootstrapped |
347 | 407 | runs-on: [self-hosted, Linux]
|
348 | 408 | container:
|
349 | 409 | image: lampepfl/dotty:2024-10-18
|
350 | 410 | options: --cpu-shares 4096
|
351 | 411 | volumes:
|
| 412 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
352 | 413 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
353 | 414 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
354 | 415 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -401,11 +462,13 @@ jobs:
|
401 | 462 | run: cat community-build/dotty-community-build-deps || true
|
402 | 463 |
|
403 | 464 | community_build_b:
|
| 465 | + needs: build-bootstrapped |
404 | 466 | runs-on: [self-hosted, Linux]
|
405 | 467 | container:
|
406 | 468 | image: lampepfl/dotty:2024-10-18
|
407 | 469 | options: --cpu-shares 4096
|
408 | 470 | volumes:
|
| 471 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
409 | 472 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
410 | 473 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
411 | 474 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -458,11 +521,13 @@ jobs:
|
458 | 521 | run: cat community-build/dotty-community-build-deps || true
|
459 | 522 |
|
460 | 523 | community_build_c:
|
| 524 | + needs: build-bootstrapped |
461 | 525 | runs-on: [self-hosted, Linux]
|
462 | 526 | container:
|
463 | 527 | image: lampepfl/dotty:2024-10-18
|
464 | 528 | options: --cpu-shares 4096
|
465 | 529 | volumes:
|
| 530 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
466 | 531 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
467 | 532 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
468 | 533 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -515,11 +580,13 @@ jobs:
|
515 | 580 | run: cat community-build/dotty-community-build-deps || true
|
516 | 581 |
|
517 | 582 | test_sbt:
|
| 583 | + needs: build-bootstrapped |
518 | 584 | runs-on: [self-hosted, Linux]
|
519 | 585 | container:
|
520 | 586 | image: lampepfl/dotty:2024-10-18
|
521 | 587 | options: --cpu-shares 4096
|
522 | 588 | volumes:
|
| 589 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
523 | 590 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
524 | 591 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
525 | 592 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -565,6 +632,7 @@ jobs:
|
565 | 632 | image: lampepfl/dotty:2024-10-18
|
566 | 633 | options: --cpu-shares 4096
|
567 | 634 | volumes:
|
| 635 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
568 | 636 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
569 | 637 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
570 | 638 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -625,6 +693,7 @@ jobs:
|
625 | 693 | image: lampepfl/dotty:2024-10-18
|
626 | 694 | options: --cpu-shares 4096
|
627 | 695 | volumes:
|
| 696 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
628 | 697 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
629 | 698 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
630 | 699 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
@@ -696,6 +765,7 @@ jobs:
|
696 | 765 | image: lampepfl/dotty:2024-10-18
|
697 | 766 | options: --cpu-shares 4096
|
698 | 767 | volumes:
|
| 768 | + - /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache |
699 | 769 | - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
|
700 | 770 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
701 | 771 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
|
0 commit comments