Skip to content

Commit 991273b

Browse files
committed
chore: add build bootstrapped compiler
1 parent fdc1641 commit 991273b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,36 @@ jobs:
7979
- name: Compile Non-Bootstrapped Dotty
8080
run: ./project/scripts/sbt "; compile"
8181

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+
82112

83113
test_non_bootstrapped:
84114
needs: build-non-bootstrapped

0 commit comments

Comments
 (0)