diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05912b2..ea55e6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,12 @@ on: push: branches: [main] pull_request: + # macOS runs here, nightly and by hand (Actions > CI > Run workflow), not on + # PRs or main: GitHub's hosted macOS pool is short on capacity, and a job + # that never gets a runner fails the required `ci` gate. + schedule: + - cron: '57 7 * * *' + workflow_dispatch: jobs: # A release PR (only versions, CHANGELOG.md, revs and locks change; see @@ -43,7 +49,7 @@ jobs: matrix: # x86_64 and aarch64 Linux both, because the sandbox's seccomp filter # is written per architecture (phase 3). - os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest] + os: ${{ fromJSON((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && '["ubuntu-latest", "ubuntu-24.04-arm", "macos-latest"]' || '["ubuntu-latest", "ubuntu-24.04-arm"]') }} env: [default, stable] steps: - uses: actions/checkout@v4 @@ -67,7 +73,7 @@ jobs: # The one check to require: every job above passed or, on a release-only PR, # was skipped in favour of the release job's consumer build. ci: - if: ${{ always() }} + if: ${{ always() && github.event_name != 'schedule' }} needs: [release, release-check, test] runs-on: ubuntu-latest steps: