[macOS] Fix build on fabric
#1399
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test iOS build | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/ios-build.yml' | |
- 'RNGestureHandler.podspec' | |
- 'apple/**' | |
- 'example/ios/**' | |
- 'FabricExample/ios/**' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.repository == 'software-mansion/react-native-gesture-handler' | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
working-directory: [example, FabricExample] | |
concurrency: | |
group: ios-${{ matrix.working-directory }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Use latest stable Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install node dependencies | |
working-directory: ${{ matrix.working-directory }} | |
run: yarn | |
- name: Install pods | |
working-directory: ${{ matrix.working-directory }}/ios | |
run: bundle install && NO_FLIPPER=1 bundle exec pod install | |
- name: Build app | |
working-directory: ${{ matrix.working-directory }} | |
run: npx react-native run-ios |