From 94def764741cbb3ed2632a7957c27034d220b11d Mon Sep 17 00:00:00 2001 From: dtroupe Date: Fri, 27 Mar 2026 09:27:26 -0700 Subject: [PATCH 1/2] build ios example --- .github/workflows/pull_request.yml | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a2cd6c07..ae4a4d78 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -64,3 +64,63 @@ jobs: lcov-file: ./coverage/lcov.info github-token: ${{ secrets.GITHUB_TOKEN }} delete-old-comments: true + + build-ios-example: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "npm" + + - name: Install root dependencies + run: npm install + env: + NPM_CONFIG_REGISTRY: https://registry.npmjs.org/ + + - name: Install example dependencies + working-directory: example + run: npm install + env: + NPM_CONFIG_REGISTRY: https://registry.npmjs.org/ + + - name: Cache CocoaPods + uses: actions/cache@v3 + with: + path: | + ~/Library/Caches/CocoaPods + example/ios/Pods + key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + + - name: Generate iOS project with Expo + working-directory: example + run: npx expo prebuild --platform ios --clean + env: + NPM_CONFIG_REGISTRY: https://registry.npmjs.org/ + + - name: Build iOS app for Simulator + working-directory: example + run: | + xcodebuild -workspace ios/reactnativeplaidlinksdkexample.xcworkspace \ + -scheme reactnativeplaidlinksdkexample \ + -sdk iphonesimulator \ + -configuration Release \ + -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \ + clean build \ + CODE_SIGNING_ALLOWED=NO \ + | tee xcodebuild.log + + - name: Upload build logs + uses: actions/upload-artifact@v4 + if: failure() + with: + name: ios-build-logs + path: example/xcodebuild.log + retention-days: 7 From d7aa75e14f68c7bd269186aec6303310311a23a1 Mon Sep 17 00:00:00 2001 From: dtroupe Date: Fri, 27 Mar 2026 09:41:02 -0700 Subject: [PATCH 2/2] update node --- .github/workflows/pull_request.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index ae4a4d78..f37c4dd9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,12 +15,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Use Node.js 20 - uses: actions/setup-node@v3 + - name: Use Node.js 22 + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "npm" - name: Install Node modules @@ -70,12 +70,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Use Node.js 20 - uses: actions/setup-node@v3 + - name: Use Node.js 22 + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "npm" - name: Install root dependencies @@ -90,7 +90,7 @@ jobs: NPM_CONFIG_REGISTRY: https://registry.npmjs.org/ - name: Cache CocoaPods - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/Library/Caches/CocoaPods