Skip to content

Commit 9dd318a

Browse files
committed
Add CI to test Android
1 parent b39f55d commit 9dd318a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test-sdks.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test-sdk-workflows
2+
on:
3+
push:
4+
branches: [ main ]
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- '*'
9+
jobs:
10+
linux-android:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
swift-version: ['6.1', '6.2']
15+
os: ['ubuntu-latest']
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 60
18+
steps:
19+
- name: Create Package
20+
run: swift package init --name SwiftDemo
21+
- name: Build Static Linux
22+
run: |
23+
curl -s --retry 3 https://raw.githubusercontent.com/swift-android-sdk/github-workflows/refs/heads/android-workflow/.github/workflows/scripts/install-and-build-with-sdk.sh | \
24+
bash -s -- --static --flags="$BUILD_FLAGS" ${{ matrix.swift_version }}
25+
- name: Build Android
26+
run: |
27+
curl -s --retry 3 https://raw.githubusercontent.com/swift-android-sdk/github-workflows/refs/heads/android-workflow/.github/workflows/scripts/install-and-build-with-sdk.sh | \
28+
bash -s -- --android --flags="$BUILD_FLAGS" ${{ matrix.swift_version }}
29+

0 commit comments

Comments
 (0)