@@ -561,6 +561,44 @@ jobs:
561
561
external_repository : lampepfl/dotty-website
562
562
publish_branch : gh-pages
563
563
564
+ nightly_unmanaged_community_build :
565
+ # Self-hosted runner is used only for getting current build version
566
+ runs-on : [self-hosted, Linux]
567
+ container :
568
+ image : lampepfl/dotty:2021-03-22
569
+ options : --cpu-shares 4096
570
+ volumes :
571
+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
572
+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
573
+ - ${{ github.workspace }}/../../cache/general:/root/.cache
574
+ needs : [publish_nightly]
575
+ if : " (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
576
+ env :
577
+ NIGHTLYBUILD : yes
578
+ steps :
579
+ - name : Reset existing repo
580
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
581
+
582
+ - name : Checkout cleanup script
583
+ uses : actions/checkout@v2
584
+
585
+ - name : Cleanup
586
+ run : .github/workflows/cleanup.sh
587
+
588
+ - name : Git Checkout
589
+ uses : actions/checkout@v2
590
+
591
+ - name : Add SBT proxy repositories
592
+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
593
+
594
+ - name : Get version string for this build
595
+ run : |
596
+ ver=$(./project/scripts/sbt "print scala3-compiler-bootstrapped/version" | tail -n1)
597
+ echo "This build version: $ver"
598
+ echo "THISBUILD_VERSION=$ver" >> $GITHUB_ENV
599
+ # Steps above are copy-pasted from publish_nightly, needed only to resolve THISBUILD_VERSION
600
+ - name : Trigger unmanaged community build
601
+ run : .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION"
564
602
565
603
publish_release :
566
604
runs-on : [self-hosted, Linux]
0 commit comments