|
79 | 79 | - name: Compile Non-Bootstrapped Dotty
|
80 | 80 | run: ./project/scripts/sbt "; compile"
|
81 | 81 |
|
| 82 | + build-bootstrapped: |
| 83 | + name: Build Bootstrapped Compiler |
| 84 | + needs: build-non-bootstrapped |
| 85 | + runs-on: [self-hosted, Linux] |
| 86 | + container: |
| 87 | + image: lampepfl/dotty:2024-10-18 |
| 88 | + options: --cpu-shares 4096 |
| 89 | + volumes: |
| 90 | + - /nfs-cache/.develocity/build-cache/${{ github.event.pull_request.number }}:/root/build-cache-source |
| 91 | + - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
| 92 | + - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
| 93 | + - ${{ github.workspace }}/../../cache/general:/root/.cache |
| 94 | + steps: |
| 95 | + - name: Populate the Local Build Cache |
| 96 | + run: cp -r /root/build-cache-source/. /root/.sbt/1.0/.develocity/build-cache |
| 97 | + - name: Set JDK 17 as default |
| 98 | + run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH |
| 99 | + - name: Checkout cleanup script |
| 100 | + uses: actions/checkout@v4 |
| 101 | + - name: Cleanup |
| 102 | + run: .github/workflows/cleanup.sh |
| 103 | + - name: Git Checkout |
| 104 | + uses: actions/checkout@v4 |
| 105 | + - name: Add SBT proxy repositories |
| 106 | + run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
| 107 | + - name: Compile Bootstrapped Dotty |
| 108 | + run: ./project/scripts/sbt "; scala3-bootstrapped/compile" |
| 109 | + - name: Populate the Remote Build Cache |
| 110 | + run: cp -r /root/.sbt/1.0/.develocity/build-cache/. /root/build-cache-source |
| 111 | + |
82 | 112 |
|
83 | 113 | test_non_bootstrapped:
|
84 | 114 | needs: build-non-bootstrapped
|
|
0 commit comments