28
28
test_non_bootstrapped :
29
29
runs-on : [self-hosted, Linux]
30
30
container :
31
- image : lampepfl/dotty:2020-11-19
31
+ image : lampepfl/dotty:2021-03-22
32
32
options : --cpu-shares 4096
33
33
volumes :
34
34
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
49
49
&& github.repository == 'lampepfl/dotty'
50
50
)"
51
51
steps :
52
- - name : Set JDK 15 as default
53
- run : echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
52
+ - name : Set JDK 16 as default
53
+ run : echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
54
+
55
+ - name : Reset existing repo
56
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
54
57
55
58
- name : Checkout cleanup script
56
59
uses : actions/checkout@v2
72
75
test :
73
76
runs-on : [self-hosted, Linux]
74
77
container :
75
- image : lampepfl/dotty:2020-11-19
78
+ image : lampepfl/dotty:2021-03-22
76
79
options : --cpu-shares 4096
77
80
volumes :
78
81
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
94
97
)"
95
98
96
99
steps :
97
- - name : Set JDK 15 as default
98
- run : echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
100
+ - name : Set JDK 16 as default
101
+ run : echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
102
+
103
+ - name : Reset existing repo
104
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
99
105
100
106
- name : Checkout cleanup script
101
107
uses : actions/checkout@v2
@@ -132,13 +138,29 @@ jobs:
132
138
)"
133
139
134
140
steps :
141
+ - name : Reset existing repo
142
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
143
+ shell : cmd
144
+
135
145
- name : Git Checkout
136
146
uses : actions/checkout@v2
137
147
138
148
- name : Test
139
149
run : sbt ";scala3-bootstrapped/compile"
140
150
shell : cmd
141
151
152
+ - name : build binary
153
+ run : sbt "dist/pack" & bash -version
154
+ shell : cmd
155
+
156
+ - name : cygwin tests
157
+ run : ' "C:\Program Files\cygwin64\bin\bash" ./project/scripts/winCmdTests'
158
+ shell : cmd
159
+
160
+ - name : msys tests
161
+ run : ' "C:\Program Files\Git\bin\bash" ./project/scripts/winCmdTests'
162
+ shell : cmd
163
+
142
164
- name : Scala.js Test
143
165
run : sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
144
166
shell : cmd
@@ -157,6 +179,10 @@ jobs:
157
179
)"
158
180
159
181
steps :
182
+ - name : Reset existing repo
183
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
184
+ shell : cmd
185
+
160
186
- name : Git Checkout
161
187
uses : actions/checkout@v2
162
188
@@ -171,7 +197,7 @@ jobs:
171
197
community_build_a :
172
198
runs-on : [self-hosted, Linux]
173
199
container :
174
- image : lampepfl/dotty:2020-11-19
200
+ image : lampepfl/dotty:2021-03-22
175
201
options : --cpu-shares 4096
176
202
volumes :
177
203
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -190,6 +216,9 @@ jobs:
190
216
)"
191
217
192
218
steps :
219
+ - name : Reset existing repo
220
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
221
+
193
222
- name : Checkout cleanup script
194
223
uses : actions/checkout@v2
195
224
@@ -211,7 +240,7 @@ jobs:
211
240
community_build_b :
212
241
runs-on : [self-hosted, Linux]
213
242
container :
214
- image : lampepfl/dotty:2020-11-19
243
+ image : lampepfl/dotty:2021-03-22
215
244
options : --cpu-shares 4096
216
245
volumes :
217
246
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -230,6 +259,9 @@ jobs:
230
259
)"
231
260
232
261
steps :
262
+ - name : Reset existing repo
263
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
264
+
233
265
- name : Checkout cleanup script
234
266
uses : actions/checkout@v2
235
267
@@ -248,7 +280,7 @@ jobs:
248
280
git submodule update --init --recursive --jobs 7
249
281
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
250
282
251
- test_sbt :
283
+ community_build_c :
252
284
runs-on : [self-hosted, Linux]
253
285
container :
254
286
image : lampepfl/dotty:2020-11-19
@@ -262,14 +294,17 @@ jobs:
262
294
|| (
263
295
github.event_name == 'pull_request'
264
296
&& !contains(github.event.pull_request.body, '[skip ci]')
265
- && !contains(github.event.pull_request.body, '[skip test_sbt ]')
297
+ && !contains(github.event.pull_request.body, '[skip community_build ]')
266
298
)
267
299
|| (
268
300
github.event_name == 'workflow_dispatch'
269
301
&& github.repository == 'lampepfl/dotty'
270
302
)"
271
303
272
304
steps :
305
+ - name : Reset existing repo
306
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
307
+
273
308
- name : Checkout cleanup script
274
309
uses : actions/checkout@v2
275
310
@@ -283,12 +318,55 @@ jobs:
283
318
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
284
319
285
320
- name : Test
321
+ run : |
322
+ git submodule sync
323
+ git submodule update --init --recursive --jobs 7
324
+ ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
325
+
326
+ test_sbt :
327
+ runs-on : [self-hosted, Linux]
328
+ container :
329
+ image : lampepfl/dotty:2021-03-22
330
+ options : --cpu-shares 4096
331
+ volumes :
332
+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
333
+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
334
+ - ${{ github.workspace }}/../../cache/general:/root/.cache
335
+ if : " github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
336
+ || github.event_name == 'push'
337
+ || (
338
+ github.event_name == 'pull_request'
339
+ && !contains(github.event.pull_request.body, '[skip ci]')
340
+ && !contains(github.event.pull_request.body, '[skip test_sbt]')
341
+ )
342
+ || (
343
+ github.event_name == 'workflow_dispatch'
344
+ && github.repository == 'lampepfl/dotty'
345
+ )"
346
+
347
+ steps :
348
+ - name : Reset existing repo
349
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
350
+
351
+ - name : Checkout cleanup script
352
+ uses : actions/checkout@v2
353
+
354
+ - name : Cleanup
355
+ run : .github/workflows/cleanup.sh
356
+
357
+ - name : Git Checkout
358
+ uses : actions/checkout@v2
359
+
360
+ - name : Add SBT proxy repositories
361
+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
362
+
363
+ - name : Test sbt
286
364
run : ./project/scripts/sbt "sbt-dotty/scripted; sbt-community-build/scripted"
287
365
288
366
test_java8 :
289
367
runs-on : [self-hosted, Linux]
290
368
container :
291
- image : lampepfl/dotty:2020-11-19
369
+ image : lampepfl/dotty:2021-03-22
292
370
options : --cpu-shares 4096
293
371
volumes :
294
372
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -315,6 +393,9 @@ jobs:
315
393
- name : Set JDK 8 as default
316
394
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
317
395
396
+ - name : Reset existing repo
397
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
398
+
318
399
- name : Checkout cleanup script
319
400
uses : actions/checkout@v2
320
401
@@ -335,13 +416,13 @@ jobs:
335
416
publish_nightly :
336
417
runs-on : [self-hosted, Linux]
337
418
container :
338
- image : lampepfl/dotty:2020-11-19
419
+ image : lampepfl/dotty:2021-03-22
339
420
options : --cpu-shares 4096
340
421
volumes :
341
422
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
342
423
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
343
424
- ${{ github.workspace }}/../../cache/general:/root/.cache
344
- needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
425
+ needs : [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
345
426
if : " (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
346
427
env :
347
428
NIGHTLYBUILD : yes
@@ -351,6 +432,9 @@ jobs:
351
432
SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
352
433
353
434
steps :
435
+ - name : Reset existing repo
436
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
437
+
354
438
- name : Checkout cleanup script
355
439
uses : actions/checkout@v2
356
440
@@ -370,7 +454,7 @@ jobs:
370
454
nightly_documentation :
371
455
runs-on : [self-hosted, Linux]
372
456
container :
373
- image : lampepfl/dotty:2020-11-19
457
+ image : lampepfl/dotty:2021-03-22
374
458
options : --cpu-shares 4096
375
459
volumes :
376
460
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -385,6 +469,9 @@ jobs:
385
469
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website
386
470
387
471
steps :
472
+ - name : Reset existing repo
473
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
474
+
388
475
- name : Checkout cleanup script
389
476
uses : actions/checkout@v2
390
477
@@ -412,13 +499,13 @@ jobs:
412
499
publish_release :
413
500
runs-on : [self-hosted, Linux]
414
501
container :
415
- image : lampepfl/dotty:2020-11-19
502
+ image : lampepfl/dotty:2021-03-22
416
503
options : --cpu-shares 4096
417
504
volumes :
418
505
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
419
506
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
420
507
- ${{ github.workspace }}/../../cache/general:/root/.cache
421
- needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
508
+ needs : [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
422
509
if : " github.event_name == 'push'
423
510
&& startsWith(github.event.ref, 'refs/tags/')
424
511
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
@@ -431,6 +518,9 @@ jobs:
431
518
SONATYPE_USER : ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
432
519
433
520
steps :
521
+ - name : Reset existing repo
522
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
523
+
434
524
- name : Checkout cleanup script
435
525
uses : actions/checkout@v2
436
526
@@ -495,7 +585,7 @@ jobs:
495
585
release_documentation :
496
586
runs-on : [self-hosted, Linux]
497
587
container :
498
- image : lampepfl/dotty:2020-11-19
588
+ image : lampepfl/dotty:2021-03-22
499
589
options : --cpu-shares 4096
500
590
volumes :
501
591
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
@@ -513,6 +603,9 @@ jobs:
513
603
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website
514
604
515
605
steps :
606
+ - name : Reset existing repo
607
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
608
+
516
609
- name : Checkout cleanup script
517
610
uses : actions/checkout@v2
518
611
@@ -540,13 +633,13 @@ jobs:
540
633
publish_sbt_release :
541
634
runs-on : [self-hosted, Linux]
542
635
container :
543
- image : lampepfl/dotty:2020-11-19
636
+ image : lampepfl/dotty:2021-03-22
544
637
options : --cpu-shares 4096
545
638
volumes :
546
639
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
547
640
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
548
641
- ${{ github.workspace }}/../../cache/general:/root/.cache
549
- needs : [community_build_a, community_build_b, test_sbt]
642
+ needs : [community_build_a, community_build_b, community_build_c, test_sbt]
550
643
if : " github.event_name == 'push'
551
644
&& startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
552
645
@@ -558,6 +651,9 @@ jobs:
558
651
SONATYPE_USER : ${{ secrets.SONATYPE_USER }}
559
652
560
653
steps :
654
+ - name : Reset existing repo
655
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
656
+
561
657
- name : Checkout cleanup script
562
658
uses : actions/checkout@v2
563
659
@@ -573,3 +669,23 @@ jobs:
573
669
- name : Publish Dotty SBT Plugin Release
574
670
run : |
575
671
./project/scripts/sbtPublish ";project sbt-dotty ;publishSigned ;sonatypeBundleRelease"
672
+
673
+ open_issue_on_failure :
674
+ runs-on : [self-hosted, Linux]
675
+ container :
676
+ image : lampepfl/dotty:2021-03-22
677
+ needs : [nightly_documentation, test_windows_full]
678
+ # The `failure()` expression is true iff at least one of the dependencies
679
+ # of this job (including transitive dependencies) has failed.
680
+ if : " failure() && github.event_name == 'schedule'"
681
+ steps :
682
+ - name : Checkout issue template
683
+ uses : actions/checkout@v2
684
+
685
+ - name : Open an issue
686
+ uses : JasonEtco/create-an-issue@v2
687
+ env :
688
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
689
+ WORKFLOW_RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
690
+ with :
691
+ filename : .github/workflows/issue_nightly_failed.md
0 commit comments