forked from mit-cml/appinventor-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement GitHub Actions (mit-cml#2059)
- Loading branch information
1 parent
bb473d9
commit 97a6a49
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Java CI' | ||
|
||
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: 'Install 32-bit dependencies' | ||
run: sudo apt-get install -y libc6-i386 lib32z1 lib32stdc++6 | ||
- name: 'Make Auth Key' | ||
run: ant MakeAuthKey | ||
working-directory: appinventor | ||
- name: 'Build Appinventor' | ||
run: ant noplay | ||
working-directory: appinventor | ||
- name: 'Run Tests' | ||
run: ant tests | ||
working-directory: appinventor | ||
- name: 'Upload Test Reports to Artifacts' | ||
uses: actions/[email protected] | ||
with: | ||
name: Test Reports | ||
path: appinventor/reports | ||
- name: 'Build Companion' | ||
run: ant PlayApp | ||
working-directory: appinventor | ||
- name: 'Upload Companion to Artifacts' | ||
uses: actions/[email protected] | ||
with: | ||
name: MIT AI2 Companion | ||
path: appinventor/build/buildserver/MIT AI2 Companion.apk |