-
Notifications
You must be signed in to change notification settings - Fork 32
110 lines (96 loc) · 2.53 KB
/
native_build.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Test
on:
push:
branches: [main]
paths-ignore:
- '**.md'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
jobs:
android-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- uses: actions/cache@v2
with:
path: |
~/.npm
~/node_modules
~/ci/node_modules
~/.config/yarn/global
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Yarn
run: |
npm install -g yarn
- name: Yarn
run: |
yarn install
cd ci
yarn
- name: Compile Android (Debug)
working-directory: ./ci/android/
run: ./gradlew assembleDebug
ios-compile:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- uses: actions/cache@v2
with:
path: |
~/.npm
~/node_modules
~/ci/node_modules
~/.config/yarn/global
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache cocoapods
uses: actions/cache@v2
with:
path: ./ci/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Yarn
run: |
npm install -g yarn
yarn
- name: Yarn
run: |
yarn install
cd ci/
yarn
cd ios/
pod install
- name: Compile iOS
working-directory: ./ci/ios/
run: |
set -o pipefail && \
xcodebuild -workspace ci.xcworkspace/ \
-scheme ci \
-destination generic/platform=iOS \
-configuration Debug \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_ENTITLEMENTS="" \
CODE_SIGNING_ALLOWED="NO" \
clean build | xcpretty