-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
59 lines (56 loc) · 1.93 KB
/
example-ios-build-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Example iOS build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- .github/workflows/example-ios-build-check.yml
- packages/react-native-reanimated/RNReanimated.podspec
- packages/react-native-reanimated/scripts/reanimated_utils.rb
- packages/react-native-reanimated/apple/**
- packages/react-native-reanimated/Common/**
- apps/fabric-example/package.json
- apps/fabric-example/ios/**
merge_group:
branches:
- main
push:
branches:
- main
paths:
- .github/workflows/example-ios-build-check.yml
- packages/react-native-reanimated/RNReanimated.podspec
- packages/react-native-reanimated/scripts/reanimated_utils.rb
- packages/react-native-reanimated/apple/**
- packages/react-native-reanimated/Common/**
- apps/fabric-example/package.json
- apps/fabric-example/ios/**
workflow_call:
workflow_dispatch:
jobs:
build:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: macos-14
env:
WORKING_DIRECTORY: apps/fabric-example
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions`
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install monorepo node dependencies
run: yarn install --immutable
# TODO: Add caching for node_modules and artifacts that will work with monorepo setup.
- name: Install Pods
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: |
bundle install
bundle exec pod install
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn react-native run-ios --no-packager