From 56b9433fdd18810aa3790e0db1ac132c6366698a Mon Sep 17 00:00:00 2001 From: ComplexSpaces Date: Sat, 19 Oct 2024 10:52:42 -0500 Subject: [PATCH] Run tests on iOS using Mac Catalyst --- .github/workflows/ci.yml | 10 +++++++++- .../src/tests/verification_mock/mod.rs | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8045ba8..3e09098 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -194,7 +194,15 @@ jobs: ./android/emulator.log /Users/runner/work/rustls-platform-verifier/rustls-platform-verifier/android/rustls-platform-verifier/build/outputs/androidTest-results/connected/test-result.pb - # TODO: Test iOS in CI too. + test_ios: + name: "Test iOS (Catalyst)" + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Run iOS tests + run: | + rustup target add aarch64-apple-ios-macabi + cargo test --target aarch64-apple-ios-macabi test-freebsd: name: Test (FreeBSD) diff --git a/rustls-platform-verifier/src/tests/verification_mock/mod.rs b/rustls-platform-verifier/src/tests/verification_mock/mod.rs index a71dd3c..dec0b45 100644 --- a/rustls-platform-verifier/src/tests/verification_mock/mod.rs +++ b/rustls-platform-verifier/src/tests/verification_mock/mod.rs @@ -15,7 +15,6 @@ #![cfg(all( any(windows, unix, target_os = "android"), - not(target_os = "ios"), // These OSes require a simulator runtime and bundle. not(target_os = "tvos"), not(target_os = "watchos"),