Skip to content

Commit

Permalink
ci: Test builds for iOS targets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ilammy authored and jyn514 committed Jun 3, 2022
1 parent 4c5ffc7 commit 87cdcee
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- arm64-android
- i686-android
- x86_64-android
- aarch64-ios
- aarch64-ios-sim
- x86_64-ios
- i686-linux
- arm-linux
- aarch64-linux
Expand Down Expand Up @@ -102,6 +105,15 @@ jobs:
target: x86_64-linux-android
rust: stable
os: ubuntu-latest
- thing: aarch64-ios
target: aarch64-apple-ios
os: macos-latest
- thing: aarch64-ios-sim
target: aarch64-apple-ios-sim
os: macos-latest
- thing: x86_64-ios
target: x86_64-apple-ios
os: macos-latest
- thing: i686-linux
target: i686-unknown-linux-gnu
rust: stable
Expand Down Expand Up @@ -159,6 +171,11 @@ jobs:
- if: "!startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')"
run: cargo test
name: Run tests (not Windows)
- if: "contains(matrix.target, 'ios')"
# It's... theoretically possible to run tests on iPhone Simulator,
# but for now, make sure that BoringSSL only builds.
run: cargo check --target ${{ matrix.target }} --all-targets
name: Check tests (iOS)

test-fips:
name: Test FIPS integration
Expand Down

0 comments on commit 87cdcee

Please sign in to comment.