mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
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:
3 files changed
+38
-5
No files matched your search
@@ -2,17 +2,25 @@
|
||||
# build: the APK (all four ABIs), the unit tests and lint.
|
||||
# native: the native engine on the runner against a dmodemd over loopback
|
||||
# SIP (native-test).
|
||||
# device: the instrumented tests on an emulator (x86_64): the native library
|
||||
# loads, binds and answers AT commands.
|
||||
# device: the instrumented tests on an emulator (x86_64, the one ABI it
|
||||
# builds): the native library loads, binds and answers AT commands.
|
||||
#
|
||||
# D-Modem-RE is a private submodule: the DMODEM_TOKEN secret is a token
|
||||
# that can read it (a fine-grained personal access token with Contents:
|
||||
# read on D-Modem/D-Modem).
|
||||
name: Android
|
||||
|
||||
# (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' }}
|
||||
|
||||
env:
|
||||
NDK_VERSION: "29.0.14206865"
|
||||
@@ -21,6 +29,8 @@ env:
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-24.04
|
||||
# (a hung test ends here, not at GitHub's 6 hours)
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -32,6 +42,8 @@ jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
# (a hung test ends here, not at GitHub's 6 hours)
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -74,6 +86,8 @@ jobs:
|
||||
|
||||
native:
|
||||
runs-on: ubuntu-24.04
|
||||
# (a hung test ends here, not at GitHub's 6 hours)
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -113,6 +127,8 @@ jobs:
|
||||
|
||||
device:
|
||||
runs-on: ubuntu-24.04
|
||||
# (a hung test ends here, not at GitHub's 6 hours)
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -148,7 +164,8 @@ jobs:
|
||||
arch: x86_64
|
||||
target: google_apis
|
||||
disable-animations: true
|
||||
script: ./gradlew connectedDebugAndroidTest
|
||||
# (the emulator's ABI only: the other three are the build job's)
|
||||
script: ./gradlew -Pdmodem.abis=x86_64 connectedDebugAndroidTest
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user