Skip to content

Commit 87cdcee

Browse files
ilammyjyn514
authored andcommitted
ci: Test builds for iOS targets
While it's possible to build Rust tests into an iOS app, start up a simulator instance, upload the tests there, and launch them -- that's a bit involved process. For now, just check that BoringSSL compiles for the specified target. Use "--all-targets" to check all targets, including the unit tests.
1 parent 4c5ffc7 commit 87cdcee

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ jobs:
7070
- arm64-android
7171
- i686-android
7272
- x86_64-android
73+
- aarch64-ios
74+
- aarch64-ios-sim
75+
- x86_64-ios
7376
- i686-linux
7477
- arm-linux
7578
- aarch64-linux
@@ -102,6 +105,15 @@ jobs:
102105
target: x86_64-linux-android
103106
rust: stable
104107
os: ubuntu-latest
108+
- thing: aarch64-ios
109+
target: aarch64-apple-ios
110+
os: macos-latest
111+
- thing: aarch64-ios-sim
112+
target: aarch64-apple-ios-sim
113+
os: macos-latest
114+
- thing: x86_64-ios
115+
target: x86_64-apple-ios
116+
os: macos-latest
105117
- thing: i686-linux
106118
target: i686-unknown-linux-gnu
107119
rust: stable
@@ -159,6 +171,11 @@ jobs:
159171
- if: "!startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')"
160172
run: cargo test
161173
name: Run tests (not Windows)
174+
- if: "contains(matrix.target, 'ios')"
175+
# It's... theoretically possible to run tests on iPhone Simulator,
176+
# but for now, make sure that BoringSSL only builds.
177+
run: cargo check --target ${{ matrix.target }} --all-targets
178+
name: Check tests (iOS)
162179

163180
test-fips:
164181
name: Test FIPS integration

0 commit comments

Comments
 (0)