You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add iOS build/test CI job and set TARGET_OS_ANDROID for the Android build
The iOS job builds for the simulator platform and runs the test
suite against a dynamically selected available iPhone simulator,
so it doesn't depend on any particular simulator name existing on
the runner image. The Android job now exports TARGET_OS_ANDROID=1
so Package.swift picks the embedded SQLite trait.
run: swift build --swift-sdk aarch64-unknown-linux-android28 -c ${{ matrix.config }}
74
+
run: TARGET_OS_ANDROID=1 swift build --swift-sdk aarch64-unknown-linux-android28 -c ${{ matrix.config }}
75
+
76
+
ios:
77
+
name: iOS
78
+
runs-on: macos-26
79
+
strategy:
80
+
fail-fast: false
81
+
matrix:
82
+
config: ["debug", "release"]
83
+
steps:
84
+
- name: Checkout
85
+
uses: actions/checkout@v4
86
+
- name: Select Simulator
87
+
run: |
88
+
DEVICE_ID=$(xcrun simctl list devices available -j | python3 -c "import json,sys; d=json.load(sys.stdin)['devices']; devices=[v for vs in d.values() for v in vs if 'iPhone' in v['name']]; print(devices[0]['udid'])")
0 commit comments