Skip to content

Commit ee2e365

Browse files
authored
chore: add the dependencies between projects (#23781)
Actually wire the dependencies in the workflow to leverage and improve the caching from develocity [skip ci] /cc @Duhemm
2 parents c8eb311 + 4281196 commit ee2e365

File tree

1 file changed

+37
-41
lines changed

1 file changed

+37
-41
lines changed

.github/workflows/stdlib.yaml

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
scala3-library-nonbootstrapped:
3434
runs-on: ubuntu-latest
35-
##needs: [scala-library-nonbootstrapped] Add when we add support for caching here
35+
needs: [scala-library-nonbootstrapped]
3636
steps:
3737
- name: Git Checkout
3838
uses: actions/checkout@v5
@@ -48,9 +48,9 @@ jobs:
4848
- name: Compile `scala3-library-nonbootstrapped`
4949
run: ./project/scripts/sbt scala3-library-nonbootstrapped/compile
5050

51-
scala-library-bootstrapped:
51+
tasty-core-nonbootstrapped:
5252
runs-on: ubuntu-latest
53-
needs : [scala3-compiler-nonbootstrapped, scala3-sbt-bridge-nonbootstrapped, scala-library-nonbootstrapped, scala3-library-nonbootstrapped]
53+
needs: [scala3-library-nonbootstrapped]
5454
steps:
5555
- name: Git Checkout
5656
uses: actions/checkout@v5
@@ -61,14 +61,13 @@ jobs:
6161
distribution: 'temurin'
6262
java-version: 17
6363
cache: 'sbt'
64-
6564
- uses: sbt/setup-sbt@v1
66-
- name: Compile `scala-library-bootstrapped`
67-
run: ./project/scripts/sbt scala-library-bootstrapped/compile
65+
- name: Compile `tasty-core-nonbootstrapped`
66+
run: ./project/scripts/sbt tasty-core-nonbootstrapped/compile
6867

69-
scala3-library-bootstrapped:
68+
scala3-compiler-nonbootstrapped:
7069
runs-on: ubuntu-latest
71-
##needs: [scala-library-bootstrapped] Add when we add support for caching here
70+
needs: [tasty-core-nonbootstrapped, scala3-library-nonbootstrapped]
7271
steps:
7372
- name: Git Checkout
7473
uses: actions/checkout@v5
@@ -79,14 +78,13 @@ jobs:
7978
distribution: 'temurin'
8079
java-version: 17
8180
cache: 'sbt'
82-
8381
- uses: sbt/setup-sbt@v1
84-
- name: Compile `scala3-library-bootstrapped`
85-
run: ./project/scripts/sbt scala3-library-bootstrapped-new/compile
82+
- name: Compile `scala3-compiler-nonbootstrapped`
83+
run: ./project/scripts/sbt scala3-compiler-nonbootstrapped/compile
8684

87-
tasty-core-nonbootstrapped:
85+
scala3-sbt-bridge-nonbootstrapped:
8886
runs-on: ubuntu-latest
89-
##needs: [scala3-library-nonbootstrapped] Add when we add support for caching here
87+
needs: [scala3-compiler-nonbootstrapped]
9088
steps:
9189
- name: Git Checkout
9290
uses: actions/checkout@v5
@@ -98,12 +96,13 @@ jobs:
9896
java-version: 17
9997
cache: 'sbt'
10098
- uses: sbt/setup-sbt@v1
101-
- name: Compile `tasty-core-nonbootstrapped`
102-
run: ./project/scripts/sbt tasty-core-nonbootstrapped/compile
99+
- name: Compile `scala3-sbt-bridge-nonbootstrapped`
100+
run: ./project/scripts/sbt scala3-sbt-bridge-nonbootstrapped/compile
103101

104-
scala3-compiler-nonbootstrapped:
102+
scala-library-bootstrapped:
105103
runs-on: ubuntu-latest
106-
##needs: [tasty-core-nonbootstrapped, scala3-library-nonbootstrapped] Add when we add support for caching here
104+
needs : [scala-library-nonbootstrapped, scala3-library-nonbootstrapped, tasty-core-nonbootstrapped,
105+
scala3-compiler-nonbootstrapped, scala3-sbt-bridge-nonbootstrapped]
107106
steps:
108107
- name: Git Checkout
109108
uses: actions/checkout@v5
@@ -114,13 +113,14 @@ jobs:
114113
distribution: 'temurin'
115114
java-version: 17
116115
cache: 'sbt'
116+
117117
- uses: sbt/setup-sbt@v1
118-
- name: Compile `scala3-compiler-nonbootstrapped`
119-
run: ./project/scripts/sbt scala3-compiler-nonbootstrapped/compile
118+
- name: Compile `scala-library-bootstrapped`
119+
run: ./project/scripts/sbt scala-library-bootstrapped/compile
120120

121-
scala3-sbt-bridge-nonbootstrapped:
121+
scala3-library-bootstrapped:
122122
runs-on: ubuntu-latest
123-
##needs: [scala3-compiler-nonbootstrapped] Add when we add support for caching here
123+
needs: [scala-library-bootstrapped]
124124
steps:
125125
- name: Git Checkout
126126
uses: actions/checkout@v5
@@ -131,13 +131,14 @@ jobs:
131131
distribution: 'temurin'
132132
java-version: 17
133133
cache: 'sbt'
134+
134135
- uses: sbt/setup-sbt@v1
135-
- name: Compile `scala3-sbt-bridge-nonbootstrapped`
136-
run: ./project/scripts/sbt scala3-sbt-bridge-nonbootstrapped/compile
136+
- name: Compile `scala3-library-bootstrapped`
137+
run: ./project/scripts/sbt scala3-library-bootstrapped-new/compile
137138

138139
tasty-core-bootstrapped:
139140
runs-on: ubuntu-latest
140-
##needs: [scala3-library-bootstrapped] Add when we add support for caching here
141+
needs: [scala3-library-bootstrapped]
141142
steps:
142143
- name: Git Checkout
143144
uses: actions/checkout@v5
@@ -154,7 +155,7 @@ jobs:
154155

155156
scala3-compiler-bootstrapped:
156157
runs-on: ubuntu-latest
157-
##needs: [tasty-core-bootstrapped, scala3-library-bootstrapped] Add when we add support for caching here
158+
needs: [tasty-core-bootstrapped, scala3-library-bootstrapped]
158159
steps:
159160
- name: Git Checkout
160161
uses: actions/checkout@v5
@@ -171,7 +172,7 @@ jobs:
171172

172173
scala3-sbt-bridge-bootstrapped:
173174
runs-on: ubuntu-latest
174-
##needs: [scala3-compiler-bootstrapped] Add when we add support for caching here
175+
needs: [scala3-compiler-bootstrapped]
175176
steps:
176177
- name: Git Checkout
177178
uses: actions/checkout@v5
@@ -188,7 +189,7 @@ jobs:
188189

189190
scala3-staging:
190191
runs-on: ubuntu-latest
191-
##needs: [scala3-compiler-bootstrapped] Add when we add support for caching here
192+
needs: [scala3-compiler-bootstrapped]
192193
steps:
193194
- name: Git Checkout
194195
uses: actions/checkout@v5
@@ -205,7 +206,7 @@ jobs:
205206

206207
scala3-tasty-inspector:
207208
runs-on: ubuntu-latest
208-
##needs: [scala3-compiler-bootstrapped] Add when we add support for caching here
209+
needs: [scala3-compiler-bootstrapped]
209210
steps:
210211
- name: Git Checkout
211212
uses: actions/checkout@v5
@@ -224,11 +225,8 @@ jobs:
224225

225226
scala-library-sjs:
226227
runs-on: ubuntu-latest
227-
## Add when we add support for caching here
228-
##needs: [scala3-library-nonbootstrapped,
229-
## tasty-core-nonbootstrapped,
230-
##  scala3-compiler-nonbootstrapped,
231-
##  scala3-sbt-bridge-nonbootstrapped]
228+
needs: [scala-library-nonbootstrapped, scala3-library-nonbootstrapped, tasty-core-nonbootstrapped,
229+
scala3-compiler-nonbootstrapped, scala3-sbt-bridge-nonbootstrapped]
232230
steps:
233231
- name: Git Checkout
234232
uses: actions/checkout@v5
@@ -247,8 +245,7 @@ jobs:
247245

248246
scala3-library-sjs:
249247
runs-on: ubuntu-latest
250-
## Add when we add support for caching here
251-
##needs: [scala-library-sjs]
248+
needs: [scala-library-sjs]
252249
steps:
253250
- name: Git Checkout
254251
uses: actions/checkout@v5
@@ -267,8 +264,7 @@ jobs:
267264

268265
scaladoc:
269266
runs-on: ubuntu-latest
270-
## Add when we add support for caching here
271-
##needs: [scala3-compiler-bootstrapped, scala3-tasty-inspector]
267+
needs: [scala3-compiler-bootstrapped, scala3-tasty-inspector]
272268
steps:
273269
- name: Git Checkout
274270
uses: actions/checkout@v5
@@ -290,7 +286,7 @@ jobs:
290286

291287
test-scala3-sbt-bridge-nonbootstrapped:
292288
runs-on: ubuntu-latest
293-
##needs: [scala3-sbt-bridge-nonbootstrapped] Add when we add support for caching here
289+
needs: [scala3-sbt-bridge-nonbootstrapped]
294290
steps:
295291
- name: Git Checkout
296292
uses: actions/checkout@v5
@@ -307,7 +303,7 @@ jobs:
307303

308304
test-scala3-sbt-bridge-bootstrapped:
309305
runs-on: ubuntu-latest
310-
##needs: [scala3-sbt-bridge-bootstrapped] Add when we add support for caching here
306+
needs: [scala3-sbt-bridge-bootstrapped]
311307
steps:
312308
- name: Git Checkout
313309
uses: actions/checkout@v5
@@ -324,7 +320,7 @@ jobs:
324320

325321
test-tasty-core-nonbootstrapped:
326322
runs-on: ubuntu-latest
327-
##needs: [tasty-core-nonbootstrapped] Add when we add support for caching here
323+
needs: [tasty-core-nonbootstrapped]
328324
steps:
329325
- name: Git Checkout
330326
uses: actions/checkout@v5
@@ -341,7 +337,7 @@ jobs:
341337

342338
test-tasty-core-bootstrapped:
343339
runs-on: ubuntu-latest
344-
##needs: [tasty-core-bootstrapped] Add when we add support for caching here
340+
needs: [tasty-core-bootstrapped]
345341
steps:
346342
- name: Git Checkout
347343
uses: actions/checkout@v5

0 commit comments

Comments
 (0)