Skip to content

Commit 0633a32

Browse files
committed
Swift Android build
1 parent 85b678f commit 0633a32

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
fail-fast: false
3939
matrix:
4040
# blank arch builds all (aarch64,x86_64,armv7)
41-
arch: ['']
41+
#arch: ['']
4242
# builds only x86_64 to speed up the validation
4343
#arch: ['x86_64']
44-
#arch: ['x86_64', '']
44+
# build both the quick (x86_64) and complete (aarch64,x86_64,armv7) SDKs
45+
arch: ['x86_64', '']
4546
runs-on: ubuntu-24.04
4647
steps:
4748
- name: Checkout repository
@@ -137,6 +138,8 @@ jobs:
137138
echo 'import Android' >> Sources/DemoProject/DemoProject.swift
138139
${{ steps.info.outputs.swift-path }} build --build-tests --swift-sdk ${{ steps.info.outputs.sdk-id }}
139140
- name: Test Demo Project on Android
141+
# only test for the complete arch SDK build to speed up CI
142+
if: ${{ matrix.arch == '' }}
140143
uses: skiptools/swift-android-action@main
141144
with:
142145
package-path: ${{ runner.temp }}/DemoProject
@@ -149,6 +152,8 @@ jobs:
149152
cd swift-algorithms
150153
${{ steps.info.outputs.swift-path }} build --build-tests --swift-sdk ${{ steps.info.outputs.sdk-id }}
151154
- name: Test swift-algorithms on Android
155+
# only test for the complete arch SDK build to speed up CI
156+
if: ${{ matrix.arch == '' }}
152157
uses: skiptools/swift-android-action@main
153158
with:
154159
#package-path: ${{ runner.temp }}/DemoProject

0 commit comments

Comments
 (0)