Skip to content

Commit 9c88a78

Browse files
committed
chore: add build step for non-bootstrapped compiler
1 parent 0cd43fe commit 9c88a78

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,35 @@ env:
5353
# text on stderr and so can break tests which check the output of a program).
5454

5555
jobs:
56+
build-non-bootstrapped:
57+
name: Build Non-Bootstrapped Compiler
58+
runs-on: [self-hosted, Linux]
59+
if: github.event_name == 'pull_request'
60+
container:
61+
image: lampepfl/dotty:2024-10-18
62+
options: --cpu-shares 4096
63+
volumes:
64+
- /nfs-cache/.develocity/build-cache/${{ github.event.pull_request.number }}:/root/.sbt/1.0/.develocity/build-cache
65+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
66+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
67+
- ${{ github.workspace }}/../../cache/general:/root/.cache
68+
steps:
69+
- name: Set JDK 17 as default
70+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
71+
- name: Checkout cleanup script
72+
uses: actions/checkout@v4
73+
- name: Cleanup
74+
run: .github/workflows/cleanup.sh
75+
- name: Git Checkout
76+
uses: actions/checkout@v4
77+
- name: Add SBT proxy repositories
78+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
79+
- name: Compile Non-Bootstrapped Dotty
80+
run: ./project/scripts/sbt "; compile"
81+
82+
5683
test_non_bootstrapped:
84+
needs: build-non-bootstrapped
5785
runs-on: [self-hosted, Linux]
5886
container:
5987
image: lampepfl/dotty:2024-10-18

0 commit comments

Comments
 (0)