-
-
Notifications
You must be signed in to change notification settings - Fork 29
57 lines (39 loc) Β· 1.38 KB
/
ios.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
name: iOS CI with Xcode
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-ios:
runs-on: macos-13
# ruby: 2.7.6, 3.0.4, 3.1.2 (../.ruby-version: 2.7.5)
# CocoaPods: 1.11.3
steps:
- uses: actions/checkout@v3
# - uses: mikehardy/buildcache-action@v1
# yarn cache
# node_modules cache
- name: Install all project dependencies
run: yarn && yarn setup
- name: npx react-native info
run: npx react-native info
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true # bundle install and cache installed gems automatically
# - run: bundle exec rake
# - uses: setup/cocoapods # cache
- name: Install pods
run: cd ios && pod update hermes-engine --no-repo-update && cd ..
- name: Build app for Debug
run: npx react-native run-ios --configuration Debug
# - name: Xcode clean
# run: xcodebuild clean
- name: Install pods (prod)
run: cd ios && PRODUCTION=1 pod install && cd ..
# --repo-update
# --clean-install
- name: Bundle app for release
run: npx react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
- name: Build app for release
run: npx react-native run-ios --configuration Release