Skip to content

Commit 025e3bc

Browse files
committed
Update GitHub CI for Android
1 parent 3141e3e commit 025e3bc

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/swift.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,20 @@ jobs:
3737
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
3838
- name: Test
3939
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
40-
- name: Build (Debug)
41-
run: swift build -c debug
42-
- name: Build (Release)
43-
run: swift build -c release
44-
- name: Test (Debug)
45-
run: swift test -c debug
40+
41+
android:
42+
name: Android
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
swift: ['6.1', 'nightly-6.2']
47+
arch: ["aarch64", "x86_64"]
48+
runs-on: macos-15
49+
timeout-minutes: 30
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: "Build Swift Package for Android"
53+
run: |
54+
brew install skiptools/skip/skip || (brew update && brew install skiptools/skip/skip)
55+
skip android sdk install --version ${{ matrix.swift }}
56+
ANDROID_NDK_ROOT="" skip android build --arch ${{ matrix.arch }}

0 commit comments

Comments
 (0)