diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 9d61d0b..9247670 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -32,6 +32,7 @@ jobs: run: cd example/android && ./gradlew clean assembleDebug ios: runs-on: macos-latest + timeout-minutes: 45 steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 @@ -47,6 +48,18 @@ jobs: run: cd example && pnpm build:ios - name: Pod install run: cd example && pod install --project-directory=ios + # Compiles the library's native code too; `pod install` alone doesn't. + - name: Build iOS Example App and Library + run: | + xcodebuild build \ + -workspace example/ios/SegmentedControlExample.xcworkspace \ + -scheme SegmentedControlExample \ + -configuration Debug \ + -sdk iphonesimulator \ + -destination 'generic/platform=iOS Simulator' \ + -derivedDataPath example/ios/build/DerivedData \ + -quiet \ + ARCHS=arm64 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO web: runs-on: ubuntu-latest steps: