From c52ec3c45171a31b6ed03ad75a5ea287371900cd Mon Sep 17 00:00:00 2001 From: Rayen Sbai Date: Fri, 20 Nov 2026 21:48:23 +0100 Subject: [PATCH] ci: build the iOS example and run the jsi suite on macOS The jsi suite links React Native's macOS Hermes framework, so the Linux cpp job skipped it and CI never ran the bindings under ASan. The new job runs the whole C++ suite on macOS, then prebuilds the example and builds it for the simulator with the runner's default Xcode. --- .github/workflows/ci.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c82a0c0..1e67e7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 - # Clang, as in the NDK and Xcode. The jsi suite needs macOS Hermes and is skipped here. + # Clang, as in the NDK and Xcode. The jsi suite needs macOS Hermes and runs in the ios job. env: CC: clang CXX: clang++ @@ -106,3 +106,40 @@ jobs: :react-native-flume:testReleaseUnitTest :app:assembleDebug -PreactNativeArchitectures=arm64-v8a + + ios: + runs-on: macos-26 + timeout-minutes: 60 + + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Setup + uses: ./.github/actions/setup + + - name: C++ core and jsi tests + run: yarn test:cpp + + - name: Prebuild the example + run: yarn example expo prebuild --platform ios --no-install + + - name: Install pods + working-directory: example/ios + run: pod install + + # A Debug simulator build skips the JS bundle, and one arch keeps it short. + - name: Build the example + working-directory: example/ios + run: >- + xcodebuild -quiet + -workspace FlumeExample.xcworkspace + -scheme FlumeExample + -configuration Debug + -sdk iphonesimulator + -destination 'generic/platform=iOS Simulator' + ARCHS=arm64 + CODE_SIGNING_ALLOWED=NO + build