80
80
# # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
81
81
- name : Reset existing repo
82
82
run : |
83
- git config --global --add safe.directory /__w/scala3/scala3
83
+ git config --global --add safe.directory $GITHUB_WORKSPACE
84
84
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
85
85
86
86
- name : Checkout cleanup script
@@ -133,7 +133,7 @@ jobs:
133
133
134
134
- name : Reset existing repo
135
135
run : |
136
- git config --global --add safe.directory /__w/scala3/scala3
136
+ git config --global --add safe.directory $GITHUB_WORKSPACE
137
137
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
138
138
139
139
- name : Checkout cleanup script
@@ -190,7 +190,7 @@ jobs:
190
190
191
191
- name : Reset existing repo
192
192
run : |
193
- git config --global --add safe.directory /__w/scala3/scala3
193
+ git config --global --add safe.directory $GITHUB_WORKSPACE
194
194
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
195
195
196
196
- name : Checkout cleanup script
@@ -229,7 +229,7 @@ jobs:
229
229
- name : Reset existing repo
230
230
shell : cmd
231
231
run : |
232
- git config --global --add safe.directory /__w/scala3/scala3
232
+ git config --global --add safe.directory $GITHUB_WORKSPACE
233
233
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
234
234
235
235
- name : Git Checkout
@@ -273,7 +273,7 @@ jobs:
273
273
- name : Reset existing repo
274
274
shell : cmd
275
275
run : |
276
- git config --global --add safe.directory /__w/scala3/scala3
276
+ git config --global --add safe.directory $GITHUB_WORKSPACE
277
277
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
278
278
279
279
- name : Git Checkout
@@ -319,7 +319,7 @@ jobs:
319
319
320
320
- name : Reset existing repo
321
321
run : |
322
- git config --global --add safe.directory /__w/scala3/scala3
322
+ git config --global --add safe.directory $GITHUB_WORKSPACE
323
323
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
324
324
325
325
- name : Checkout cleanup script
@@ -374,7 +374,7 @@ jobs:
374
374
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
375
375
- name : Reset existing repo
376
376
run : |
377
- git config --global --add safe.directory /__w/scala3/scala3
377
+ git config --global --add safe.directory $GITHUB_WORKSPACE
378
378
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
379
379
380
380
- name : Checkout cleanup script
@@ -391,7 +391,7 @@ jobs:
391
391
392
392
- name : Test
393
393
run : |
394
- git config --global --add safe.directory /__w/scala3/scala3
394
+ git config --global --add safe.directory $GITHUB_WORKSPACE
395
395
git submodule sync
396
396
git submodule update --init --recursive --jobs 7
397
397
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -431,7 +431,7 @@ jobs:
431
431
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
432
432
- name : Reset existing repo
433
433
run : |
434
- git config --global --add safe.directory /__w/scala3/scala3
434
+ git config --global --add safe.directory $GITHUB_WORKSPACE
435
435
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
436
436
437
437
- name : Checkout cleanup script
@@ -448,7 +448,7 @@ jobs:
448
448
449
449
- name : Test
450
450
run : |
451
- git config --global --add safe.directory /__w/scala3/scala3
451
+ git config --global --add safe.directory $GITHUB_WORKSPACE
452
452
git submodule sync
453
453
git submodule update --init --recursive --jobs 7
454
454
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -488,7 +488,7 @@ jobs:
488
488
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
489
489
- name : Reset existing repo
490
490
run : |
491
- git config --global --add safe.directory /__w/scala3/scala3
491
+ git config --global --add safe.directory $GITHUB_WORKSPACE
492
492
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
493
493
494
494
- name : Checkout cleanup script
@@ -505,7 +505,7 @@ jobs:
505
505
506
506
- name : Test
507
507
run : |
508
- git config --global --add safe.directory /__w/scala3/scala3
508
+ git config --global --add safe.directory $GITHUB_WORKSPACE
509
509
git submodule sync
510
510
git submodule update --init --recursive --jobs 7
511
511
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -541,7 +541,7 @@ jobs:
541
541
542
542
- name : Reset existing repo
543
543
run : |
544
- git config --global --add safe.directory /__w/scala3/scala3
544
+ git config --global --add safe.directory $GITHUB_WORKSPACE
545
545
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
546
546
547
547
- name : Checkout cleanup script
@@ -593,7 +593,7 @@ jobs:
593
593
594
594
- name : Reset existing repo
595
595
run : |
596
- git config --global --add safe.directory /__w/scala3/scala3
596
+ git config --global --add safe.directory $GITHUB_WORKSPACE
597
597
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
598
598
599
599
- name : Checkout cleanup script
@@ -630,7 +630,10 @@ jobs:
630
630
- ${{ github.workspace }}/../../cache/general:/root/.cache
631
631
strategy :
632
632
matrix :
633
- branch : [main, lts-3.3]
633
+ series : [
634
+ {repository: scala/scala3, branch: main}, # Scala Next nightly
635
+ {repository: scala/scala3-lts, branch: lts-3.3} # Scala LTS nightly
636
+ ]
634
637
needs : [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
635
638
if : " (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'scala/scala3'"
636
639
env :
@@ -648,7 +651,7 @@ jobs:
648
651
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
649
652
- name : Reset existing repo
650
653
run : |
651
- git config --global --add safe.directory /__w/scala3/scala3
654
+ git config --global --add safe.directory $GITHUB_WORKSPACE
652
655
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
653
656
654
657
- name : Checkout cleanup script
@@ -660,7 +663,8 @@ jobs:
660
663
- name : Git Checkout
661
664
uses : actions/checkout@v4
662
665
with :
663
- ref : ${{ matrix.branch }}
666
+ repository : ${{ matrix.series.repository }}
667
+ ref : ${{ matrix.series.branch }}
664
668
665
669
- name : Add SBT proxy repositories
666
670
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -706,7 +710,7 @@ jobs:
706
710
steps :
707
711
- name : Reset existing repo
708
712
run : |
709
- git config --global --add safe.directory /__w/scala3/scala3
713
+ git config --global --add safe.directory $GITHUB_WORKSPACE
710
714
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
711
715
712
716
- name : Checkout cleanup script
@@ -723,7 +727,7 @@ jobs:
723
727
724
728
- name : Generate Website
725
729
run : |
726
- git config --global --add safe.directory /__w/scala3/scala3
730
+ git config --global --add safe.directory $GITHUB_WORKSPACE
727
731
./project/scripts/genDocs -doc-snapshot
728
732
729
733
- name : Deploy Website to https://dotty.epfl.ch
@@ -764,7 +768,7 @@ jobs:
764
768
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
765
769
- name : Reset existing repo
766
770
run : |
767
- git config --global --add safe.directory /__w/scala3/scala3
771
+ git config --global --add safe.directory $GITHUB_WORKSPACE
768
772
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
769
773
770
774
- name : Checkout cleanup script
@@ -832,9 +836,10 @@ jobs:
832
836
sha256sum "${msiInstaller}" > "${msiInstaller}.sha256"
833
837
834
838
- name : Install GH CLI
835
- uses :
dev-hanz-ops/[email protected] .0
839
+ uses :
dev-hanz-ops/[email protected] .1
836
840
with :
837
841
gh-cli-version : 2.59.0
842
+
838
843
# Create the GitHub release
839
844
- name : Create GitHub Release
840
845
env :
@@ -843,7 +848,7 @@ jobs:
843
848
run : |
844
849
# We need to config safe.directory in every step that might reference git
845
850
# It is not persisted between steps
846
- git config --global --add safe.directory /__w/scala3/scala3
851
+ git config --global --add safe.directory $GITHUB_WORKSPACE
847
852
gh release create \
848
853
--draft \
849
854
--title "${{ env.RELEASE_TAG }}" \
0 commit comments