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).
This commit is contained in:
Lawrence Chen 2026-03-02 22:13:03 -08:00 committed by GitHub
parent 56f184d02e
commit fe3e2d06d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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