-
Notifications
You must be signed in to change notification settings - Fork 59
54 lines (45 loc) · 1.58 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
name: Build CI
# Trigger the workflow on push
on: [push]
jobs:
job1:
name: Android Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Base Setup
run: npm run ci.base.setup
- name: Lint
run: npm run ci.tslint
- name: Build Vanilla Android Demo App
run: npm run ci.vanilla.android.build
# - name: Install Android sdkmanager
# run: |
# wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip
# sudo unzip -d $ANDROID_HOME android-sdk.zip > /dev/null
# - name: Install required Android tools
# run: |
# echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;${ANDROID_NDK}" > /dev/null
# - name: Android Test
# run: |
# echo no | android create avd --force -n test -b armeabi-v7a
# emulator -avd test -no-audio -no-window &
# android-wait-for-emulator
# cd src && npm i && npm run tsc && cd ../demo && tns build android
# tns test android --justlaunch
job2:
name: iOS Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Base Setup
run: npm run ci.base.setup && npm run ci.pip.install
- name: Build Vanilla iOS Demo App
run: npm run ci.vanilla.ios.build
# - name: iOS Test
# run: |
# cd src && npm i && npm run tsc && cd ../demo && tns build ios
# tns test ios --justlaunch