From fe3e2d06d9823d2817e41eebac75c2ef51d99d8e Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:13:03 -0800 Subject: [PATCH] Trigger nightly on push to main, switch to GitHub macos-15 runner (#779) Build immediately on merge instead of waiting for the hourly cron. Concurrency group cancels in-progress builds when new commits land. Depot macos runner replaced with GitHub macos-15 (similar perf, simpler). --- .github/workflows/nightly.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 64b3fd35..702c5d8f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,6 +1,8 @@ name: Nightly macOS build on: + push: + branches: [main] schedule: # Every hour at :30. The 'decide' job skips if main has no new commits. - cron: "30 * * * *" @@ -12,6 +14,10 @@ on: default: false type: boolean +concurrency: + group: nightly-build + cancel-in-progress: true + permissions: contents: write @@ -81,7 +87,7 @@ jobs: build-sign-notarize-nightly: needs: decide if: needs.decide.outputs.should_build == 'true' - runs-on: depot-macos-latest + runs-on: macos-15 steps: - name: Checkout main uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4