Skip to content

Commit 8a107ca

Browse files
committed
chore: Use more the local cache :-)
1 parent 0e76e5d commit 8a107ca

File tree

2 files changed

+70
-54
lines changed

2 files changed

+70
-54
lines changed

.github/workflows/build-dotty.yml

-54
This file was deleted.

.github/workflows/ci.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,65 @@ 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+
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+
56107
test_non_bootstrapped:
108+
needs: build-non-bootstrapped
57109
runs-on: [self-hosted, Linux]
58110
container:
59111
image: lampepfl/dotty:2024-10-18
60112
options: --cpu-shares 4096
61113
volumes:
114+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
62115
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
63116
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
64117
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -106,11 +159,13 @@ jobs:
106159
./project/scripts/cmdTests
107160
108161
test:
162+
needs: build-bootstrapped
109163
runs-on: [self-hosted, Linux]
110164
container:
111165
image: lampepfl/dotty:2024-10-18
112166
options: --cpu-shares 4096
113167
volumes:
168+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
114169
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
115170
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
116171
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -166,11 +221,13 @@ jobs:
166221
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"
167222

168223
test_scala2_library_tasty:
224+
needs: build-bootstrapped
169225
runs-on: [self-hosted, Linux]
170226
container:
171227
image: lampepfl/dotty:2024-10-18
172228
options: --cpu-shares 4096
173229
volumes:
230+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
174231
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
175232
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
176233
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -293,11 +350,13 @@ jobs:
293350

294351
mima:
295352
name: MiMa
353+
needs: build-bootstrapped
296354
runs-on: [self-hosted, Linux]
297355
container:
298356
image: lampepfl/dotty:2024-10-18
299357
options: --cpu-shares 4096
300358
volumes:
359+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
301360
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
302361
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
303362
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -344,11 +403,13 @@ jobs:
344403
./project/scripts/scala2-library-tasty-mima.sh
345404
346405
community_build_a:
406+
needs: build-bootstrapped
347407
runs-on: [self-hosted, Linux]
348408
container:
349409
image: lampepfl/dotty:2024-10-18
350410
options: --cpu-shares 4096
351411
volumes:
412+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
352413
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
353414
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
354415
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -401,11 +462,13 @@ jobs:
401462
run: cat community-build/dotty-community-build-deps || true
402463

403464
community_build_b:
465+
needs: build-bootstrapped
404466
runs-on: [self-hosted, Linux]
405467
container:
406468
image: lampepfl/dotty:2024-10-18
407469
options: --cpu-shares 4096
408470
volumes:
471+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
409472
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
410473
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
411474
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -458,11 +521,13 @@ jobs:
458521
run: cat community-build/dotty-community-build-deps || true
459522

460523
community_build_c:
524+
needs: build-bootstrapped
461525
runs-on: [self-hosted, Linux]
462526
container:
463527
image: lampepfl/dotty:2024-10-18
464528
options: --cpu-shares 4096
465529
volumes:
530+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
466531
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
467532
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
468533
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -515,11 +580,13 @@ jobs:
515580
run: cat community-build/dotty-community-build-deps || true
516581

517582
test_sbt:
583+
needs: build-bootstrapped
518584
runs-on: [self-hosted, Linux]
519585
container:
520586
image: lampepfl/dotty:2024-10-18
521587
options: --cpu-shares 4096
522588
volumes:
589+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
523590
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
524591
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
525592
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -565,6 +632,7 @@ jobs:
565632
image: lampepfl/dotty:2024-10-18
566633
options: --cpu-shares 4096
567634
volumes:
635+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
568636
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
569637
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
570638
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -625,6 +693,7 @@ jobs:
625693
image: lampepfl/dotty:2024-10-18
626694
options: --cpu-shares 4096
627695
volumes:
696+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
628697
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
629698
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
630699
- ${{ github.workspace }}/../../cache/general:/root/.cache
@@ -696,6 +765,7 @@ jobs:
696765
image: lampepfl/dotty:2024-10-18
697766
options: --cpu-shares 4096
698767
volumes:
768+
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
699769
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
700770
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
701771
- ${{ github.workspace }}/../../cache/general:/root/.cache

0 commit comments

Comments
 (0)