aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/android.yml
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-09-07 15:46:08 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-09-07 15:52:28 +0900
commit714db175bf3e01f89aeb9eda5ea8d853ebca50f7 (patch)
treea7d23b877cd1f97601e8ae22d6b6a3c5b3ec803c /.github/workflows/android.yml
parentd63a1f105815c3fe4ffd954443541bff5259cedf (diff)
downloadportable-714db175bf3e01f89aeb9eda5ea8d853ebca50f7.tar.gz
portable-714db175bf3e01f89aeb9eda5ea8d853ebca50f7.tar.bz2
portable-714db175bf3e01f89aeb9eda5ea8d853ebca50f7.zip
Test minimum and latest Android API levels
Previously, Android CI built every API level from 26 through 30 for each supported ABI using the runner's default NDK. This PR changes the CI to: - Build each supported ABI against the minimum API level, API 26 - Build each supported ABI against the latest API provided by the NDK - Use the latest NDK preinstalled on the GitHub Actions runner - Replace the MIN_NAL/MAX_NAL range with one API per matrix job
Diffstat (limited to '.github/workflows/android.yml')
-rw-r--r--.github/workflows/android.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index d9d3b36..bd02a3b 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -17,12 +17,10 @@ jobs:
17 fail-fast: false 17 fail-fast: false
18 matrix: 18 matrix:
19 include: 19 include:
20 - name: "Android 8-9" 20 - name: "Minimum API 26"
21 min-nal: 26 21 api-level: 26
22 max-nal: 28 22 - name: "Latest API"
23 - name: "Android 10-11" 23 api-level: latest
24 min-nal: 29
25 max-nal: 30
26 steps: 24 steps:
27 - name: "Checkout repository" 25 - name: "Checkout repository"
28 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 26 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -35,8 +33,8 @@ jobs:
35 sudo apt-get install -y cmake ninja-build 33 sudo apt-get install -y cmake ninja-build
36 34
37 - name: "Run CI script" 35 - name: "Run CI script"
38 run: ./scripts/test 36 run: |
37 ANDROID_NDK_HOME="$ANDROID_NDK_LATEST_HOME" ./scripts/test
39 env: 38 env:
40 ARCH: "android" 39 ARCH: "android"
41 MIN_NAL: "${{ matrix.min-nal }}" 40 ANDROID_API_LEVEL: "${{ matrix.api-level }}"
42 MAX_NAL: "${{ matrix.max-nal }}"