|
22 | 22 | - 'lts-**'
|
23 | 23 | pull_request:
|
24 | 24 | merge_group:
|
25 |
| - schedule: |
26 |
| - - cron: '0 3 * * *' # Every day at 3 AM |
27 | 25 | workflow_dispatch:
|
28 | 26 |
|
29 | 27 | # Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag)
|
@@ -619,128 +617,6 @@ jobs:
|
619 | 617 | run: |
|
620 | 618 | ./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
|
621 | 619 |
|
622 |
| - publish_nightly: |
623 |
| - runs-on: [self-hosted, Linux] |
624 |
| - container: |
625 |
| - image: lampepfl/dotty:2024-10-18 |
626 |
| - options: --cpu-shares 4096 |
627 |
| - volumes: |
628 |
| - - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
629 |
| - - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
630 |
| - - ${{ github.workspace }}/../../cache/general:/root/.cache |
631 |
| - strategy: |
632 |
| - matrix: |
633 |
| - series: [ |
634 |
| - {repository: scala/scala3, branch: main}, # Scala Next nightly |
635 |
| - {repository: scala/scala3-lts, branch: lts-3.3} # Scala LTS nightly |
636 |
| - ] |
637 |
| - needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8] |
638 |
| - if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'scala/scala3'" |
639 |
| - env: |
640 |
| - NIGHTLYBUILD: yes |
641 |
| - PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase |
642 |
| - PGP_SECRET: ${{ secrets.PGP_SECRET }} # Export your private and public PGP key to an *.asc file, take the file's contents as a string |
643 |
| - SONATYPE_PW: ${{ secrets.SONATYPE_PW_ORGSCALALANG }} |
644 |
| - SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }} |
645 |
| - |
646 |
| - steps: |
647 |
| - ###################################################################################### |
648 |
| - ## WARNING: DO NOT CHANGE THE JAVA VERSION HERE. SCALA IS DISTRIBUTED USING JAVA 8. ## |
649 |
| - ###################################################################################### |
650 |
| - - name: Set JDK 8 as default |
651 |
| - run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH |
652 |
| - - name: Reset existing repo |
653 |
| - run: | |
654 |
| - git config --global --add safe.directory $GITHUB_WORKSPACE |
655 |
| - git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true |
656 |
| -
|
657 |
| - - name: Checkout cleanup script |
658 |
| - uses: actions/checkout@v5 |
659 |
| - |
660 |
| - - name: Cleanup |
661 |
| - run: .github/workflows/cleanup.sh |
662 |
| - |
663 |
| - - name: Git Checkout |
664 |
| - uses: actions/checkout@v5 |
665 |
| - with: |
666 |
| - repository: ${{ matrix.series.repository }} |
667 |
| - ref: ${{ matrix.series.branch }} |
668 |
| - |
669 |
| - - name: Add SBT proxy repositories |
670 |
| - run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
671 |
| - |
672 |
| - - name: Get version string for this build |
673 |
| - run: | |
674 |
| - ver=$(./project/scripts/sbt "print scala3-compiler-bootstrapped/version" | tail -n1) |
675 |
| - echo "This build version: $ver" |
676 |
| - echo "THISBUILD_VERSION=$ver" >> $GITHUB_ENV |
677 |
| -
|
678 |
| - - name: Check is version matching pattern |
679 |
| - shell: bash |
680 |
| - run: | |
681 |
| - if ! grep -Eo "3\.[0-9]+\.[0-9]+-RC[0-9]+-bin-[0-9]{8}-[a-zA-Z0-9]{7}-NIGHTLY" <<< "${{ env.THISBUILD_VERSION }}"; then |
682 |
| - echo "Version used by compiler to publish nightly release does not match expected pattern" |
683 |
| - exit 1 |
684 |
| - fi |
685 |
| -
|
686 |
| - - name: Check whether not yet published |
687 |
| - id: not_yet_published |
688 |
| - continue-on-error: true |
689 |
| - run: | |
690 |
| - ! ./project/scripts/is-version-published.sh "$THISBUILD_VERSION" |
691 |
| -
|
692 |
| - - name: Publish Nightly |
693 |
| - if: "steps.not_yet_published.outcome == 'success'" |
694 |
| - run: | |
695 |
| - ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaRelease" |
696 |
| -
|
697 |
| - nightly_documentation: |
698 |
| - runs-on: [self-hosted, Linux] |
699 |
| - container: |
700 |
| - image: lampepfl/dotty:2024-10-18 |
701 |
| - options: --cpu-shares 4096 |
702 |
| - volumes: |
703 |
| - - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
704 |
| - - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
705 |
| - - ${{ github.workspace }}/../../cache/general:/root/.cache |
706 |
| - needs: [publish_nightly] |
707 |
| - if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'scala/scala3'" |
708 |
| - env: |
709 |
| - NIGHTLYBUILD: yes |
710 |
| - steps: |
711 |
| - - name: Reset existing repo |
712 |
| - run: | |
713 |
| - git config --global --add safe.directory $GITHUB_WORKSPACE |
714 |
| - git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true |
715 |
| -
|
716 |
| - - name: Checkout cleanup script |
717 |
| - uses: actions/checkout@v5 |
718 |
| - |
719 |
| - - name: Cleanup |
720 |
| - run: .github/workflows/cleanup.sh |
721 |
| - |
722 |
| - - name: Set JDK 17 as default |
723 |
| - run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH |
724 |
| - |
725 |
| - - name: Git Checkout |
726 |
| - uses: actions/checkout@v5 |
727 |
| - |
728 |
| - - name: Add SBT proxy repositories |
729 |
| - run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
730 |
| - |
731 |
| - - name: Generate Website |
732 |
| - run: | |
733 |
| - git config --global --add safe.directory $GITHUB_WORKSPACE |
734 |
| - ./project/scripts/genDocs -doc-snapshot |
735 |
| -
|
736 |
| - - name: Deploy Website to https://dotty.epfl.ch |
737 |
| - uses: peaceiris/actions-gh-pages@v4 |
738 |
| - with: |
739 |
| - personal_token: ${{ secrets.DOTTYBOT_TOKEN }} |
740 |
| - publish_dir: docs/_site |
741 |
| - external_repository: scala/dotty.epfl.ch |
742 |
| - publish_branch: main |
743 |
| - |
744 | 620 | publish_release:
|
745 | 621 | permissions:
|
746 | 622 | contents: write # for GH CLI to create a release
|
|
0 commit comments