Skip to content

Commit 6aa97b0

Browse files
committed
Update CI to build for all archs in a single matrix
1 parent 19c54c1 commit 6aa97b0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/swift.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
matrix:
1414
# os: ['ubuntu-24.04', 'macos-15-intel']
1515
os: ['ubuntu-24.04']
16-
arch: ['aarch64', 'x86_64', 'armv7']
1716
android-sdk: ['nightly-6.3']
1817
android-api: ['28', '29', '31', '33']
1918
android-ndk: ['r27d']
@@ -29,7 +28,8 @@ jobs:
2928
swift-android-ndk-version: ${{ matrix.android-ndk }}
3029
- name: "Build Swift Package for Android"
3130
run: |
32-
ANDROID_NDK_ROOT="" ANDROID_SDK_VERSION=${{ matrix.android-api }} skip android build --arch ${{ matrix.arch }} --android-api-level ${{ matrix.android-api }}
31+
ANDROID_SDK_VERSION=${{ matrix.android-api }} skip android build --arch aarch64 --arch armv7 --arch x86_64 --android-api-level ${{ matrix.android-api }}
32+
3333
- name: "Test Swift Package on Android"
3434
# can only lookup the current JavaVirtualMachine on SDK >= 31
3535
# https://github.com/swiftlang/swift-java/issues/419
@@ -38,5 +38,6 @@ jobs:
3838
with:
3939
api-level: ${{ matrix.android-api }}
4040
arch: x86_64
41-
script: skip android test --android-api-level ${{ matrix.android-api }} --apk --verbose
41+
script: |
42+
ANDROID_SDK_VERSION=${{ matrix.android-api }} skip android test --android-api-level ${{ matrix.android-api }} --apk --verbose
4243

0 commit comments

Comments
 (0)