-
Notifications
You must be signed in to change notification settings - Fork 15
81 lines (65 loc) · 1.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build CI
# Trigger the workflow on push or pull request
on: [push]
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Set Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Fix Android build-tools issue
run: |
echo "Uninstalling build tools > 30"
echo "As a temporary workaround to fix builds"
SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
echo y | $SDKMANAGER --uninstall "build-tools;31.0.0"
echo y | $SDKMANAGER --install "ndk;22.1.7171670"
- name: Build Plugin Source
run: cd src && npm run build
- name: Lint
run: |
cd src && npm run ci.tslint
cd ../demo && npm run ci.tslint
cd ../demo-angular && npm run ci.tslint
cd ../demo-vue && npm run ci.tslint
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install PIP
run: |
sudo pip install --upgrade pip
sudo pip install six
- name: Setup NativeScript CLI
run: |
echo no | npm i -g nativescript@^8.2.0
ns usage-reporting disable
ns error-reporting disable
- name: Build Android Demo App
run: |
cd demo
ns build android --env.uglify
- name: Build iOS Demo App
run: |
cd demo
ns build ios --env.uglify
- name: Build Android Angular Demo App
run: |
cd demo-angular
ns build android --env.uglify
- name: Build iOS Demo Angular App
run: |
cd demo-angular
ns build ios --env.uglify
- name: Build Android Vue Demo App
run: |
cd demo-vue
ns build android --env.uglify
- name: Build iOS Demo Vue App
run: |
cd demo-vue
ns build ios --env.uglify