10
10
DOTTY_CI_RUN : true
11
11
12
12
jobs :
13
- test :
13
+ test_non_bootstrapped :
14
14
runs-on : [self-hosted, Linux]
15
15
container :
16
- image : lampepfl/dotty:2020-09-08
16
+ image : lampepfl/dotty:2020-11-19
17
17
volumes :
18
18
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
19
19
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
20
20
- ${{ github.workspace }}/../../cache/general:/root/.cache
21
- if : " !(github.event_name == 'push' &&
22
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
23
-
21
+ if : " github.event_name == 'schedule'
22
+ || (
23
+ github.event_name == 'push'
24
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
25
+ )
26
+ || (
27
+ github.event_name == 'pull_request'
28
+ && !contains(github.event.pull_request.body, '[skip ci]')
29
+ && contains(github.event.pull_request.body, '[test_non_bootstrapped]')
30
+ )"
24
31
steps :
25
- - name : Set JDK 14 as default
26
- run : echo "/usr/lib/jvm/java-14 -openjdk-amd64/bin" >> $GITHUB_PATH
32
+ - name : Set JDK 15 as default
33
+ run : echo "/usr/lib/jvm/java-15 -openjdk-amd64/bin" >> $GITHUB_PATH
27
34
28
35
- name : Checkout cleanup script
29
36
uses : actions/checkout@v2
@@ -42,20 +49,28 @@ jobs:
42
49
./project/scripts/sbt ";compile ;test"
43
50
./project/scripts/cmdTests
44
51
45
- test_bootstrapped :
52
+ test :
46
53
runs-on : [self-hosted, Linux]
47
54
container :
48
- image : lampepfl/dotty:2020-09-08
55
+ image : lampepfl/dotty:2020-11-19
49
56
volumes :
50
57
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
51
58
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
52
59
- ${{ github.workspace }}/../../cache/general:/root/.cache
53
- if : " !(github.event_name == 'push' &&
54
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
60
+ if : " github.event_name == 'schedule'
61
+ || (
62
+ github.event_name == 'push'
63
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
64
+ )
65
+ || (
66
+ github.event_name == 'pull_request'
67
+ && !contains(github.event.pull_request.body, '[skip ci]')
68
+ && !contains(github.event.pull_request.body, '[skip test]')
69
+ )"
55
70
56
71
steps :
57
- - name : Set JDK 14 as default
58
- run : echo "/usr/lib/jvm/java-14 -openjdk-amd64/bin" >> $GITHUB_PATH
72
+ - name : Set JDK 15 as default
73
+ run : echo "/usr/lib/jvm/java-15 -openjdk-amd64/bin" >> $GITHUB_PATH
59
74
60
75
- name : Checkout cleanup script
61
76
uses : actions/checkout@v2
@@ -74,26 +89,18 @@ jobs:
74
89
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
75
90
./project/scripts/bootstrapCmdTests
76
91
77
- # # Only run bootstrapped tests for Windows since that's a superset of the
78
- # # non-bootstrapped tests and bootstrapping issues should be caught by
79
- # # the non-bootstrapped Linux runner.
80
- # test-windows:
81
- # runs-on: [self-hosted, Windows]
82
- # if: "!(github.event_name == 'push' &&
83
- # startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
84
-
85
- # steps:
86
- # - name: Git Checkout
87
- # uses: actions/checkout@v2
88
-
89
- # - name: Test
90
- # run: sbt ";compile ;test"
91
- # shell: cmd
92
-
93
- test_bootstrapped-windows :
92
+ test_windows :
94
93
runs-on : [self-hosted, Windows]
95
- if : " !(github.event_name == 'push' &&
96
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
94
+ if : " github.event_name == 'schedule'
95
+ || (
96
+ github.event_name == 'push'
97
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
98
+ )
99
+ || (
100
+ github.event_name == 'pull_request'
101
+ && !contains(github.event.pull_request.body, '[skip ci]')
102
+ && !contains(github.event.pull_request.body, '[skip test_windows]')
103
+ )"
97
104
98
105
steps :
99
106
- name : Git Checkout
@@ -110,11 +117,18 @@ jobs:
110
117
community_build_a :
111
118
runs-on : [self-hosted, Linux]
112
119
container :
113
- image : lampepfl/dotty:2020-09-08
120
+ image : lampepfl/dotty:2020-11-19
114
121
volumes :
115
122
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
116
123
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
117
124
- ${{ github.workspace }}/../../cache/general:/root/.cache
125
+ if : " github.event_name == 'schedule'
126
+ || github.event_name == 'push'
127
+ || (
128
+ github.event_name == 'pull_request'
129
+ && !contains(github.event.pull_request.body, '[skip ci]')
130
+ && !contains(github.event.pull_request.body, '[skip community_build]')
131
+ )"
118
132
119
133
steps :
120
134
- name : Checkout cleanup script
@@ -138,11 +152,18 @@ jobs:
138
152
community_build_b :
139
153
runs-on : [self-hosted, Linux]
140
154
container :
141
- image : lampepfl/dotty:2020-09-08
155
+ image : lampepfl/dotty:2020-11-19
142
156
volumes :
143
157
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
144
158
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
145
159
- ${{ github.workspace }}/../../cache/general:/root/.cache
160
+ if : " github.event_name == 'schedule'
161
+ || github.event_name == 'push'
162
+ || (
163
+ github.event_name == 'pull_request'
164
+ && !contains(github.event.pull_request.body, '[skip ci]')
165
+ && !contains(github.event.pull_request.body, '[skip community_build]')
166
+ )"
146
167
147
168
steps :
148
169
- name : Checkout cleanup script
@@ -166,16 +187,21 @@ jobs:
166
187
test_sbt :
167
188
runs-on : [self-hosted, Linux]
168
189
container :
169
- image : lampepfl/dotty:2020-09-08
190
+ image : lampepfl/dotty:2020-11-19
170
191
volumes :
171
192
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
172
193
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
173
194
- ${{ github.workspace }}/../../cache/general:/root/.cache
174
- if : (
175
- github.event_name == 'push' &&
176
- startsWith(github.event.ref, 'refs/tags/')
177
- ) ||
178
- github.event_name == 'schedule'
195
+ if : " github.event_name == 'schedule'
196
+ || (
197
+ github.event_name == 'push'
198
+ && startsWith(github.event.ref, 'refs/tags/')
199
+ )
200
+ || (
201
+ github.event_name == 'pull_request'
202
+ && !contains(github.event.pull_request.body, '[skip ci]')
203
+ && contains(github.event.pull_request.body, '[test_sbt]')
204
+ )"
179
205
180
206
steps :
181
207
- name : Checkout cleanup script
@@ -196,18 +222,23 @@ jobs:
196
222
test_java8 :
197
223
runs-on : [self-hosted, Linux]
198
224
container :
199
- image : lampepfl/dotty:2020-09-08
225
+ image : lampepfl/dotty:2020-11-19
200
226
volumes :
201
227
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
202
228
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
203
229
- ${{ github.workspace }}/../../cache/general:/root/.cache
204
230
205
- if : " (
206
- github.event_name == 'push' &&
207
- startsWith(github.event.ref, 'refs/tags/') &&
208
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
209
- ) ||
210
- github.event_name == 'schedule'"
231
+ if : " github.event_name == 'schedule'
232
+ || (
233
+ github.event_name == 'push'
234
+ && startsWith(github.event.ref, 'refs/tags/')
235
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
236
+ )
237
+ || (
238
+ github.event_name == 'pull_request'
239
+ && !contains(github.event.pull_request.body, '[skip ci]')
240
+ && contains(github.event.pull_request.body, '[test_java8]')
241
+ )"
211
242
212
243
steps :
213
244
- name : Set JDK 8 as default
@@ -226,18 +257,20 @@ jobs:
226
257
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
227
258
228
259
- name : Test
229
- run : ./project/scripts/sbt ";compile ;test"
260
+ run : |
261
+ ./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
262
+ ./project/scripts/bootstrapCmdTests
230
263
231
264
publish_nightly :
232
265
runs-on : [self-hosted, Linux]
233
266
container :
234
- image : lampepfl/dotty:2020-09-08
267
+ image : lampepfl/dotty:2020-11-19
235
268
volumes :
236
269
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
237
270
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
238
271
- ${{ github.workspace }}/../../cache/general:/root/.cache
239
- needs : [test, test_bootstrapped , community_build_a, community_build_b, test_sbt, test_java8]
240
- if : github.event_name == 'schedule'
272
+ needs : [test_non_bootstrapped, test , community_build_a, community_build_b, test_sbt, test_java8]
273
+ if : " github.event_name == 'schedule'"
241
274
env :
242
275
NIGHTLYBUILD : yes
243
276
PGP_PW : ${{ secrets.PGP_PW }} # PGP passphrase
@@ -265,13 +298,13 @@ jobs:
265
298
nightly_documentation :
266
299
runs-on : [self-hosted, Linux]
267
300
container :
268
- image : lampepfl/dotty:2020-09-08
301
+ image : lampepfl/dotty:2020-11-19
269
302
volumes :
270
303
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
271
304
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
272
305
- ${{ github.workspace }}/../../cache/general:/root/.cache
273
306
needs : [publish_nightly]
274
- if : github.event_name == 'schedule'
307
+ if : " github.event_name == 'schedule'"
275
308
env :
276
309
NIGHTLYBUILD : yes
277
310
BOT_TOKEN : ${{ secrets.BOT_TOKEN }} # If you need to change this:
@@ -306,15 +339,15 @@ jobs:
306
339
publish_release :
307
340
runs-on : [self-hosted, Linux]
308
341
container :
309
- image : lampepfl/dotty:2020-09-08
342
+ image : lampepfl/dotty:2020-11-19
310
343
volumes :
311
344
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
312
345
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
313
346
- ${{ github.workspace }}/../../cache/general:/root/.cache
314
- needs : [test, test_bootstrapped , community_build_a, community_build_b, test_sbt, test_java8]
315
- if : github.event_name == 'push' &&
316
- startsWith(github.event.ref, 'refs/tags/') &&
317
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
347
+ needs : [test_non_bootstrapped, test , community_build_a, community_build_b, test_sbt, test_java8]
348
+ if : " github.event_name == 'push'
349
+ && startsWith(github.event.ref, 'refs/tags/')
350
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
318
351
319
352
env :
320
353
RELEASEBUILD : yes
@@ -388,15 +421,15 @@ jobs:
388
421
release_documentation :
389
422
runs-on : [self-hosted, Linux]
390
423
container :
391
- image : lampepfl/dotty:2020-09-08
424
+ image : lampepfl/dotty:2020-11-19
392
425
volumes :
393
426
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
394
427
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
395
428
- ${{ github.workspace }}/../../cache/general:/root/.cache
396
429
needs : [publish_release]
397
- if : github.event_name == 'push' &&
398
- startsWith(github.event.ref, 'refs/tags/') &&
399
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
430
+ if : " github.event_name == 'push'
431
+ && startsWith(github.event.ref, 'refs/tags/')
432
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
400
433
401
434
env :
402
435
RELEASEBUILD : yes
@@ -432,14 +465,14 @@ jobs:
432
465
publish_sbt_release :
433
466
runs-on : [self-hosted, Linux]
434
467
container :
435
- image : lampepfl/dotty:2020-09-08
468
+ image : lampepfl/dotty:2020-11-19
436
469
volumes :
437
470
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
438
471
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
439
472
- ${{ github.workspace }}/../../cache/general:/root/.cache
440
473
needs : [community_build_a, community_build_b, test_sbt]
441
- if : github.event_name == 'push' &&
442
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
474
+ if : " github.event_name == 'push'
475
+ && startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
443
476
444
477
env :
445
478
RELEASEBUILD : yes
0 commit comments