CI: each commit run once, superseded runs cancelled, time limits, one ABI on the emulator

- Pushes run CI only on main; a branch's commits run as its pull
  request (each PR commit ran everything twice). workflow_dispatch to
  run a branch by hand.
- A newer commit on a pull request cancels the run before it.
- Every job has a time limit: a hung test had a build job running for
  over an hour, with GitHub's default 6 hours to go.
- The emulator job builds x86_64 only (-Pdmodem.abis, new: the ABIs of
  the native code and proot, all four by default); the build job still
  builds all four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
This commit is contained in:
Claude committed 2026-10-30 14:16:54 +00:00
1 parent 1eb596d6d3
commit bd3fa40dfd
3 files changed
+38 -5

No files matched your search

+10
View File
@@ -8,13 +8,23 @@
# android.yml's).
name: Apple
# (a branch's commits run once, as its pull request: pushed, only main's)
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
# a newer commit on a pull request cancels the run before it (main's all run)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
engine:
runs-on: macos-15
# (a hung test ends here, not at GitHub's 6 hours)
timeout-minutes: 50
steps:
- uses: actions/checkout@v4
with: