7272 # # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
7373 - name : Reset existing repo
7474 run : |
75- git config --global --add safe.directory /__w/scala3/scala3
75+ git config --global --add safe.directory $GITHUB_WORKSPACE
7676 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
7777
7878 - name : Checkout cleanup script
@@ -125,7 +125,7 @@ jobs:
125125
126126 - name : Reset existing repo
127127 run : |
128- git config --global --add safe.directory /__w/scala3/scala3
128+ git config --global --add safe.directory $GITHUB_WORKSPACE
129129 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
130130
131131 - name : Checkout cleanup script
@@ -168,7 +168,7 @@ jobs:
168168 - name : Reset existing repo
169169 shell : cmd
170170 run : |
171- git config --global --add safe.directory /__w/scala3/scala3
171+ git config --global --add safe.directory $GITHUB_WORKSPACE
172172 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
173173
174174 - name : Git Checkout
@@ -212,7 +212,7 @@ jobs:
212212 - name : Reset existing repo
213213 shell : cmd
214214 run : |
215- git config --global --add safe.directory /__w/scala3/scala3
215+ git config --global --add safe.directory $GITHUB_WORKSPACE
216216 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
217217
218218 - name : Git Checkout
@@ -254,7 +254,7 @@ jobs:
254254
255255 - name : Reset existing repo
256256 run : |
257- git config --global --add safe.directory /__w/scala3/scala3
257+ git config --global --add safe.directory $GITHUB_WORKSPACE
258258 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
259259
260260 - name : Checkout cleanup script
@@ -301,7 +301,7 @@ jobs:
301301 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
302302 - name : Reset existing repo
303303 run : |
304- git config --global --add safe.directory /__w/scala3/scala3
304+ git config --global --add safe.directory $GITHUB_WORKSPACE
305305 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
306306
307307 - name : Checkout cleanup script
@@ -318,7 +318,7 @@ jobs:
318318
319319 - name : Test
320320 run : |
321- git config --global --add safe.directory /__w/scala3/scala3
321+ git config --global --add safe.directory $GITHUB_WORKSPACE
322322 git submodule sync
323323 git submodule update --init --recursive --jobs 7
324324 ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -355,7 +355,7 @@ jobs:
355355 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
356356 - name : Reset existing repo
357357 run : |
358- git config --global --add safe.directory /__w/scala3/scala3
358+ git config --global --add safe.directory $GITHUB_WORKSPACE
359359 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
360360
361361 - name : Checkout cleanup script
@@ -372,7 +372,7 @@ jobs:
372372
373373 - name : Test
374374 run : |
375- git config --global --add safe.directory /__w/scala3/scala3
375+ git config --global --add safe.directory $GITHUB_WORKSPACE
376376 git submodule sync
377377 git submodule update --init --recursive --jobs 7
378378 ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -409,7 +409,7 @@ jobs:
409409 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
410410 - name : Reset existing repo
411411 run : |
412- git config --global --add safe.directory /__w/scala3/scala3
412+ git config --global --add safe.directory $GITHUB_WORKSPACE
413413 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
414414
415415 - name : Checkout cleanup script
@@ -426,7 +426,7 @@ jobs:
426426
427427 - name : Test
428428 run : |
429- git config --global --add safe.directory /__w/scala3/scala3
429+ git config --global --add safe.directory $GITHUB_WORKSPACE
430430 git submodule sync
431431 git submodule update --init --recursive --jobs 7
432432 ./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -462,7 +462,7 @@ jobs:
462462
463463 - name : Reset existing repo
464464 run : |
465- git config --global --add safe.directory /__w/scala3/scala3
465+ git config --global --add safe.directory $GITHUB_WORKSPACE
466466 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
467467
468468 - name : Checkout cleanup script
@@ -511,7 +511,7 @@ jobs:
511511
512512 - name : Reset existing repo
513513 run : |
514- git config --global --add safe.directory /__w/scala3/scala3
514+ git config --global --add safe.directory $GITHUB_WORKSPACE
515515 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
516516
517517 - name : Checkout cleanup script
@@ -559,7 +559,7 @@ jobs:
559559 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
560560 - name : Reset existing repo
561561 run : |
562- git config --global --add safe.directory /__w/scala3/scala3
562+ git config --global --add safe.directory $GITHUB_WORKSPACE
563563 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
564564
565565 - name : Checkout cleanup script
@@ -623,7 +623,7 @@ jobs:
623623 steps :
624624 - name : Reset existing repo
625625 run : |
626- git config --global --add safe.directory /__w/scala3/scala3
626+ git config --global --add safe.directory $GITHUB_WORKSPACE
627627 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
628628
629629 - name : Checkout cleanup script
@@ -640,7 +640,7 @@ jobs:
640640
641641 - name : Generate Website
642642 run : |
643- git config --global --add safe.directory /__w/scala3/scala3
643+ git config --global --add safe.directory $GITHUB_WORKSPACE
644644 ./project/scripts/genDocs -doc-snapshot
645645
646646 - name : Deploy Website to dotty-website
@@ -678,7 +678,7 @@ jobs:
678678 run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
679679 - name : Reset existing repo
680680 run : |
681- git config --global --add safe.directory /__w/scala3/scala3
681+ git config --global --add safe.directory $GITHUB_WORKSPACE
682682 git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
683683
684684 - name : Checkout cleanup script
@@ -707,7 +707,6 @@ jobs:
707707 run : |
708708 ./project/scripts/sbt dist/packArchive
709709 sha256sum dist/target/scala3-* > dist/target/sha256sum.txt
710- echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
711710
712711 - name : Create GitHub Release
713712 id : create_gh_release
@@ -752,7 +751,7 @@ jobs:
752751 asset_content_type : text/plain
753752
754753 - name : Publish Release
755- run : ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease "
754+ run : ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleUpload "
756755
757756
758757 open_issue_on_failure :
@@ -774,3 +773,30 @@ jobs:
774773 WORKFLOW_RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
775774 with :
776775 filename : .github/workflows/issue_nightly_failed.md
776+
777+ build-sdk-package :
778+ uses : ./.github/workflows/build-sdk.yml
779+ if :
780+ (github.event_name == 'pull_request' && !contains(github.event.pull_request.body, '[skip ci]')) ||
781+ (github.event_name == 'workflow_dispatch' && github.repository == 'scala/scala3') ||
782+ (github.event_name == 'schedule' && github.repository == 'scala/scala3') ||
783+ github.event_name == 'push'
784+ with :
785+ java-version : 8
786+
787+ build-chocolatey-package :
788+ uses : ./.github/workflows/build-chocolatey.yml
789+ needs : [ build-sdk-package ]
790+ with :
791+ version : 3.3.5-local # unused
792+ url : https://api.github.com/repos/scala/scala3/actions/artifacts/${{ needs.build-sdk-package.outputs.universal-id }}/zip
793+ digest : ${{ needs.build-sdk-package.outputs.universal-digest }}
794+
795+ test-chocolatey-package :
796+ uses : ./.github/workflows/test-chocolatey.yml
797+ with :
798+ version : 3.3.5-local # unused
799+ java-version : 8
800+ if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_chocolatey]')
801+ needs : [ build-chocolatey-package ]
802+
0 commit comments