forked from Path-Check/safeplaces-dct-app
-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (44 loc) · 1.74 KB
/
Copy pathbuild_ios.yml
File metadata and controls
54 lines (44 loc) · 1.74 KB
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
name: Build iOS
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Set XCode Version
run: sudo xcode-select -s /Applications/Xcode_11.app
- name: Installing CocoaPods
run: gem install cocoapods
- name: Update Pods
run: pod repo update
working-directory: ./ios
- name: Cache node_modules/
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-cache-
- run: yarn --frozen-lockfile
- name: Pod Install
run: pod install
working-directory: ./ios
- name: make src/main/assets directory
run: mkdir -p ./android/app/src/main/assets
- name: Bundle iOS JS
run: npx react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios
# - name: Build App
# # xcodebuild -workspace PrivateKit.xcworkspace -configuration Debug -scheme PrivateKit
# # xcodebuild -workspace PrivateKit.xcworkspace -scheme PrivateKit archive -archivePath PrivateKit.xcarchive -allowProvisioningUpdates
# # xcodebuild -exportArchive -archivePath ./PrivateKit.xcarchive -exportPath . -exportOptionsPlist PrivateKit/Info.plist
# run: xcodebuild -workspace PrivateKit.xcworkspace -scheme PrivateKit archive -archivePath PrivateKit.xcarchive -allowProvisioningUpdates
# working-directory: ./ios
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# with:
# name: Debug IPA
# path: ios/build/