@@ -551,10 +551,6 @@ jobs:
551
551
run : |
552
552
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
553
553
554
- - name : Trigger unmanaged community build
555
- continue-on-error : true
556
- run : .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION"
557
-
558
554
nightly_documentation :
559
555
runs-on : [self-hosted, Linux]
560
556
container :
@@ -604,6 +600,41 @@ jobs:
604
600
external_repository : lampepfl/dotty-website
605
601
publish_branch : gh-pages
606
602
603
+ nightly_unmanaged_community_build :
604
+ # Self-hosted runner is used only for getting current build version
605
+ runs-on : [self-hosted, Linux]
606
+ container :
607
+ image : lampepfl/dotty:2021-03-22
608
+ options : --cpu-shares 4096
609
+ volumes :
610
+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
611
+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
612
+ - ${{ github.workspace }}/../../cache/general:/root/.cache
613
+ needs : [publish_nightly]
614
+ steps :
615
+ - name : Reset existing repo
616
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
617
+
618
+ - name : Checkout cleanup script
619
+ uses : actions/checkout@v2
620
+
621
+ - name : Cleanup
622
+ run : .github/workflows/cleanup.sh
623
+
624
+ - name : Git Checkout
625
+ uses : actions/checkout@v2
626
+
627
+ - name : Add SBT proxy repositories
628
+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
629
+
630
+ - name : Get version string for this build
631
+ run : |
632
+ ver=$(./project/scripts/sbt "print scala3-compiler-bootstrapped/version" | tail -n1)
633
+ echo "This build version: $ver"
634
+ echo "THISBUILD_VERSION=$ver" >> $GITHUB_ENV
635
+ # Steps above are copy-pasted from publish_nightly, needed only to resolve THISBUILD_VERSION
636
+ - name : Trigger unmanaged community build
637
+ run : .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION"
607
638
608
639
publish_release :
609
640
runs-on : [self-hosted, Linux]
0 commit comments