-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.89 KB
/
build.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
name: Build
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
build-android-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Make Gradlew Executable
run: chmod +x ./gradlew
working-directory: android
- name: Build Android lib
run: ./gradlew assembleRelease --no-daemon
working-directory: android
build-android-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Install example dependencies
run: yarn install
working-directory: example
- name: Make Gradlew Executable
run: chmod +x ./gradlew
working-directory: example/android
- name: Build Android example
run: ./gradlew bundleRelease --no-daemon
working-directory: example/android
build-ios-example:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Install example dependencies
run: yarn install
working-directory: example
- name: Install pods
run: pod install
working-directory: example/ios
- name: Build iOS example
run: xcodebuild clean build -workspace Example.xcworkspace -scheme Example CODE_SIGNING_ALLOWED=NO | xcpretty
working-directory: example/ios