|
14 | 14 | ## - both (tags or tags-ignore) and (branches or branches-ignore),
|
15 | 15 | ## - or neither of them.
|
16 | 16 | ## But it's important to not have only one or the other.
|
| 17 | + tags: |
| 18 | + - '*' |
| 19 | + branches-ignore: |
| 20 | + - 'gh-readonly-queue/**' |
17 | 21 | pull_request:
|
| 22 | + merge_group: |
18 | 23 | schedule:
|
19 | 24 | - cron: '0 3 * * *' # Every day at 3 AM
|
20 | 25 | workflow_dispatch:
|
|
97 | 102 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
98 | 103 | if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|
99 | 104 | || github.event_name == 'push'
|
| 105 | + || github.event_name == 'merge_group' |
100 | 106 | || (
|
101 | 107 | github.event_name == 'pull_request'
|
102 | 108 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -142,6 +148,7 @@ jobs:
|
142 | 148 | github.event_name == 'push'
|
143 | 149 | && github.ref != 'refs/heads/main'
|
144 | 150 | )
|
| 151 | + || github.event_name == 'merge_group' |
145 | 152 | || (
|
146 | 153 | github.event_name == 'pull_request'
|
147 | 154 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -218,6 +225,7 @@ jobs:
|
218 | 225 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
219 | 226 | if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|
220 | 227 | || github.event_name == 'push'
|
| 228 | + || github.event_name == 'merge_group' |
221 | 229 | || (
|
222 | 230 | github.event_name == 'pull_request'
|
223 | 231 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -258,6 +266,7 @@ jobs:
|
258 | 266 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
259 | 267 | if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|
260 | 268 | || github.event_name == 'push'
|
| 269 | + || github.event_name == 'merge_group' |
261 | 270 | || (
|
262 | 271 | github.event_name == 'pull_request'
|
263 | 272 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -306,6 +315,7 @@ jobs:
|
306 | 315 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
307 | 316 | if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|
308 | 317 | || github.event_name == 'push'
|
| 318 | + || github.event_name == 'merge_group' |
309 | 319 | || (
|
310 | 320 | github.event_name == 'pull_request'
|
311 | 321 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -354,6 +364,7 @@ jobs:
|
354 | 364 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
355 | 365 | if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|
356 | 366 | || github.event_name == 'push'
|
| 367 | + || github.event_name == 'merge_group' |
357 | 368 | || (
|
358 | 369 | github.event_name == 'pull_request'
|
359 | 370 | && !contains(github.event.pull_request.body, '[skip ci]')
|
@@ -585,45 +596,6 @@ jobs:
|
585 | 596 | external_repository: lampepfl/dotty-website
|
586 | 597 | publish_branch: gh-pages
|
587 | 598 |
|
588 |
| - nightly_unmanaged_community_build: |
589 |
| - # Self-hosted runner is used only for getting current build version |
590 |
| - runs-on: [self-hosted, Linux] |
591 |
| - container: |
592 |
| - image: lampepfl/dotty:2021-03-22 |
593 |
| - options: --cpu-shares 4096 |
594 |
| - volumes: |
595 |
| - - ${{ github.workspace }}/../../cache/sbt:/root/.sbt |
596 |
| - - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache |
597 |
| - - ${{ github.workspace }}/../../cache/general:/root/.cache |
598 |
| - needs: [publish_nightly] |
599 |
| - if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'" |
600 |
| - env: |
601 |
| - NIGHTLYBUILD: yes |
602 |
| - steps: |
603 |
| - - name: Reset existing repo |
604 |
| - run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true |
605 |
| - |
606 |
| - - name: Checkout cleanup script |
607 |
| - uses: actions/checkout@v3 |
608 |
| - |
609 |
| - - name: Cleanup |
610 |
| - run: .github/workflows/cleanup.sh |
611 |
| - |
612 |
| - - name: Git Checkout |
613 |
| - uses: actions/checkout@v3 |
614 |
| - |
615 |
| - - name: Add SBT proxy repositories |
616 |
| - run: cp -vf .github/workflows/repositories /root/.sbt/ ; true |
617 |
| - |
618 |
| - - name: Get version string for this build |
619 |
| - run: | |
620 |
| - ver=$(./project/scripts/sbt "print scala3-compiler-bootstrapped/version" | tail -n1) |
621 |
| - echo "This build version: $ver" |
622 |
| - echo "THISBUILD_VERSION=$ver" >> $GITHUB_ENV |
623 |
| - # Steps above are copy-pasted from publish_nightly, needed only to resolve THISBUILD_VERSION |
624 |
| - - name: Trigger unmanaged community build |
625 |
| - run: .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION" |
626 |
| - |
627 | 599 | publish_release:
|
628 | 600 | permissions:
|
629 | 601 | contents: write # for actions/create-release to create a release
|
|
0 commit comments