2626 - cron : ' 0 3 * * *' # Every day at 3 AM
2727 workflow_dispatch :
2828
29- # Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag)
29+ # Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag)
3030# For example it would:
3131# - terminate previous PR CI execution after pushing more changes to the same PR branch
32- # - terminate previous on-push CI run after merging new PR to main
32+ # - terminate previous on-push CI run after merging new PR to main
3333concurrency :
3434 group : ${{ github.workflow }}-${{ github.ref }}
3535 cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
@@ -84,13 +84,13 @@ jobs:
8484 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
8585
8686 - name : Checkout cleanup script
87- uses : actions/checkout@v4
87+ uses : actions/checkout@v5
8888
8989 - name : Cleanup
9090 run : .github/workflows/cleanup.sh
9191
9292 - name : Git Checkout
93- uses : actions/checkout@v4
93+ uses : actions/checkout@v5
9494
9595 - name : Add SBT proxy repositories
9696 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -137,13 +137,13 @@ jobs:
137137 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
138138
139139 - name : Checkout cleanup script
140- uses : actions/checkout@v4
140+ uses : actions/checkout@v5
141141
142142 - name : Cleanup
143143 run : .github/workflows/cleanup.sh
144144
145145 - name : Git Checkout
146- uses : actions/checkout@v4
146+ uses : actions/checkout@v5
147147
148148 - name : Add SBT proxy repositories
149149 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -194,13 +194,13 @@ jobs:
194194 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
195195
196196 - name : Checkout cleanup script
197- uses : actions/checkout@v4
197+ uses : actions/checkout@v5
198198
199199 - name : Cleanup
200200 run : .github/workflows/cleanup.sh
201201
202202 - name : Git Checkout
203- uses : actions/checkout@v4
203+ uses : actions/checkout@v5
204204
205205 - name : Add SBT proxy repositories
206206 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -233,7 +233,7 @@ jobs:
233233 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
234234
235235 - name : Git Checkout
236- uses : actions/checkout@v4
236+ uses : actions/checkout@v5
237237
238238 - name : Test
239239 run : sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/testCompilation; scala3-presentation-compiler/test; scala3-language-server/test"
@@ -277,7 +277,7 @@ jobs:
277277 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
278278
279279 - name : Git Checkout
280- uses : actions/checkout@v4
280+ uses : actions/checkout@v5
281281
282282 - name : build binary
283283 run : sbt "dist-win-x86_64/Universal/stage"
@@ -323,13 +323,13 @@ jobs:
323323 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
324324
325325 - name : Checkout cleanup script
326- uses : actions/checkout@v4
326+ uses : actions/checkout@v5
327327
328328 - name : Cleanup
329329 run : .github/workflows/cleanup.sh
330330
331331 - name : Git Checkout
332- uses : actions/checkout@v4
332+ uses : actions/checkout@v5
333333
334334 - name : Add SBT proxy repositories
335335 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -378,13 +378,13 @@ jobs:
378378 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
379379
380380 - name : Checkout cleanup script
381- uses : actions/checkout@v4
381+ uses : actions/checkout@v5
382382
383383 - name : Cleanup
384384 run : .github/workflows/cleanup.sh
385385
386386 - name : Git Checkout
387- uses : actions/checkout@v4
387+ uses : actions/checkout@v5
388388
389389 - name : Add SBT proxy repositories
390390 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -435,13 +435,13 @@ jobs:
435435 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
436436
437437 - name : Checkout cleanup script
438- uses : actions/checkout@v4
438+ uses : actions/checkout@v5
439439
440440 - name : Cleanup
441441 run : .github/workflows/cleanup.sh
442442
443443 - name : Git Checkout
444- uses : actions/checkout@v4
444+ uses : actions/checkout@v5
445445
446446 - name : Add SBT proxy repositories
447447 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -492,13 +492,13 @@ jobs:
492492 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
493493
494494 - name : Checkout cleanup script
495- uses : actions/checkout@v4
495+ uses : actions/checkout@v5
496496
497497 - name : Cleanup
498498 run : .github/workflows/cleanup.sh
499499
500500 - name : Git Checkout
501- uses : actions/checkout@v4
501+ uses : actions/checkout@v5
502502
503503 - name : Add SBT proxy repositories
504504 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -545,13 +545,13 @@ jobs:
545545 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
546546
547547 - name : Checkout cleanup script
548- uses : actions/checkout@v4
548+ uses : actions/checkout@v5
549549
550550 - name : Cleanup
551551 run : .github/workflows/cleanup.sh
552552
553553 - name : Git Checkout
554- uses : actions/checkout@v4
554+ uses : actions/checkout@v5
555555
556556 - name : Add SBT proxy repositories
557557 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -597,13 +597,13 @@ jobs:
597597 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
598598
599599 - name : Checkout cleanup script
600- uses : actions/checkout@v4
600+ uses : actions/checkout@v5
601601
602602 - name : Cleanup
603603 run : .github/workflows/cleanup.sh
604604
605605 - name : Git Checkout
606- uses : actions/checkout@v4
606+ uses : actions/checkout@v5
607607
608608 - name : Add SBT proxy repositories
609609 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -655,13 +655,13 @@ jobs:
655655 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
656656
657657 - name : Checkout cleanup script
658- uses : actions/checkout@v4
658+ uses : actions/checkout@v5
659659
660660 - name : Cleanup
661661 run : .github/workflows/cleanup.sh
662662
663663 - name : Git Checkout
664- uses : actions/checkout@v4
664+ uses : actions/checkout@v5
665665 with :
666666 repository : ${{ matrix.series.repository }}
667667 ref : ${{ matrix.series.branch }}
@@ -692,7 +692,7 @@ jobs:
692692 - name : Publish Nightly
693693 if : " steps.not_yet_published.outcome == 'success'"
694694 run : |
695- ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease "
695+ ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaRelease "
696696
697697 nightly_documentation :
698698 runs-on : [self-hosted, Linux]
@@ -714,13 +714,16 @@ jobs:
714714 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
715715
716716 - name : Checkout cleanup script
717- uses : actions/checkout@v4
717+ uses : actions/checkout@v5
718718
719719 - name : Cleanup
720720 run : .github/workflows/cleanup.sh
721721
722+ - name : Set JDK 17 as default
723+ run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
724+
722725 - name : Git Checkout
723- uses : actions/checkout@v4
726+ uses : actions/checkout@v5
724727
725728 - name : Add SBT proxy repositories
726729 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -772,13 +775,13 @@ jobs:
772775 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
773776
774777 - name : Checkout cleanup script
775- uses : actions/checkout@v4
778+ uses : actions/checkout@v5
776779
777780 - name : Cleanup
778781 run : .github/workflows/cleanup.sh
779782
780783 - name : Git Checkout
781- uses : actions/checkout@v4
784+ uses : actions/checkout@v5
782785
783786 - name : Add SBT proxy repositories
784787 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -824,7 +827,7 @@ jobs:
824827 prepareSDK "-x86_64-pc-win32" "dist-win-x86_64" "./dist/win-x86_64/"
825828
826829 - name : Download MSI package
827- uses : actions/download-artifact@v4
830+ uses : actions/download-artifact@v5
828831 with :
829832 name : scala.msi
830833 path : .
@@ -859,10 +862,10 @@ jobs:
859862 scala3-${{ env.RELEASE_TAG }}*.zip \
860863 scala3-${{ env.RELEASE_TAG }}*.tar.gz \
861864 scala3-${{ env.RELEASE_TAG }}*.sha256 \
862- scala3-${{ env.RELEASE_TAG }}.msi
865+ scala3-${{ env.RELEASE_TAG }}.msi
863866
864867 - name : Publish Release
865- run : ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleUpload "
868+ run : ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaUpload "
866869
867870
868871 open_issue_on_failure :
@@ -875,7 +878,7 @@ jobs:
875878 if : " failure() && github.event_name == 'schedule'"
876879 steps :
877880 - name : Checkout issue template
878- uses : actions/checkout@v4
881+ uses : actions/checkout@v5
879882
880883 - name : Open an issue
881884 uses : JasonEtco/create-an-issue@v2
@@ -898,7 +901,7 @@ jobs:
898901 # Ensure that version starts with prefix 3.
899902 # In the future it can be adapted to compare with git tag or version set in the project/Build.scala
900903 version : " 3."
901- java-version : 8
904+ java-version : 17
902905
903906 build-sdk-package :
904907 uses : ./.github/workflows/build-sdk.yml
@@ -909,7 +912,7 @@ jobs:
909912 github.event_name == 'push' ||
910913 github.event_name == 'merge_group'
911914 with :
912- java-version : 8
915+ java-version : 17
913916
914917 build-chocolatey-package :
915918 uses : ./.github/workflows/build-chocolatey.yml
@@ -923,6 +926,6 @@ jobs:
923926 uses : ./.github/workflows/test-chocolatey.yml
924927 with :
925928 version : 3.6.0-SNAPSHOT # Fake version, used only for choco tests
926- java-version : 8
929+ java-version : 17
927930 if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_chocolatey]')
928931 needs : [ build-chocolatey-package ]
0 commit comments