forked from mit-cml/appinventor-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (67 loc) · 2.17 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
name: 'Test Build'
on: push
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Set up JDK 1.8'
uses: actions/setup-java@v1
with:
java-version: 8
- name: 'Checkout submodules'
uses: textbook/git-checkout-submodule-action@master
- name: Update
run: sudo apt update
- name: 'Install 32-bit dependencies'
run: sudo apt install -y libc6-i386 lib32z1 lib32stdc++6
- name: 'Fetch Source'
run: git fetch origin master
- name: 'Checkout Master'
run: git checkout master
- name: 'Merge Source'
run: git merge master origin/master
- name: 'Make Auth Key'
run: ant MakeAuthKey
working-directory: appinventor
- name: 'Clean Build'
run: ant clean
working-directory: appinventor
- name: 'Build AppInventor'
run: ant noplay
working-directory: appinventor
- name: 'Build Companion'
run: ant
working-directory: appinventor
- name: 'Upload Companion to Artifacts'
uses: actions/upload-artifact@v1.0.0
with:
name: MIT AI2 Companion
path: appinventor/build/buildserver/MIT AI2 Companion.apk
- name: 'Upload Companion Full to Artifacts'
uses: actions/upload-artifact@v1.0.0
with:
name: MIT AI2 Companion Full
path: appinventor/build/buildserver/MITAI2Companion-full.apk
- name: 'Run Tests'
run: ant tests
working-directory: appinventor
- name: 'Upload Test Reports to Artifacts'
uses: actions/upload-artifact@v1.0.0
with:
name: Test Reports
path: appinventor/reports
- name: 'Pack War'
uses: actions/upload-artifact@v1.0.0
with:
name: PackWar
path: appinventor/appengine/build/war
- name: 'BuildServer Tar'
run: ant BuildDeploymentTar
working-directory: appinventor/buildserver
- name: 'Pack BuildServer'
uses: actions/upload-artifact@v1.0.0
with:
name: BuildServerTar
path: appinventor/build/buildserver/BuildServer.tar