-
Notifications
You must be signed in to change notification settings - Fork 61
67 lines (65 loc) · 2.19 KB
/
ios_android.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
60
61
62
63
64
65
66
67
name: 'build ios-android'
on:
workflow_call:
inputs:
react-native-version:
required: true
type: string
release-version:
required: true
type: string
xcode-version:
type: string
default: '15.4'
jobs:
Build:
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2.3.3
with:
submodules: 'recursive'
- name: Free space
uses: ./.github/workflows/macos_freespace
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1.8
with:
cmake-version: '3.26.3'
- name: Setup Ninja
run: brew install ninja
- name: 'Select XCode ${{ inputs.xcode-version }}'
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-version }}.app/Contents/Developer
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: NPM Install (Playground)
run: npm install
working-directory: ./Apps/Playground
- name: Select React Native Version ${{ inputs.react-native-version }}
run: npm run select --reactNative ${{ inputs.react-native-version }}
working-directory: ./Apps/Playground
- name: NPM Install (Binary Package)
run: npm install
working-directory: ./Package
- name: Gulp
run: npx gulp --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ inputs.release-version }}
working-directory: ./Package
env:
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }}
- name: Upload Assembled iOS Android Folder
uses: actions/upload-artifact@v4
with:
name: 'Assembled-iOSAndroid${{ inputs.react-native-version }}'
path: Package/Assembled-iOSAndroid
- name: Upload Assembled iOS Android BaseKit Folder
uses: actions/upload-artifact@v4
with:
name: 'Assembled-BaseKit-iOSAndroid${{ inputs.react-native-version }}'
path: Package/Assembled-BaseKit-iOSAndroid