2019-10-18 09:32:38 -07:00
|
|
|
name: Android
|
2019-10-25 21:04:01 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-18 09:32:38 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildInContainer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2020-04-24 15:24:43 -07:00
|
|
|
image: docker://subsurface/android-build-container:5.13.12
|
2019-10-18 09:32:38 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: run build
|
|
|
|
run: |
|
|
|
|
cd ..
|
|
|
|
ln -s /android/Qt .
|
|
|
|
ln -s /android/android-ndk-r18b .
|
|
|
|
ln -s /android/android-sdk-linux .
|
|
|
|
ls -l
|
|
|
|
bash -x subsurface/packaging/android/android-build-wrapper.sh
|
2020-04-24 15:24:43 -07:00
|
|
|
cp /__w/subsurface/subsurface-mobile-build-arm64/*mobile*/build/outputs/apk/debug/subsurface-mobile-arm64-v8a-debug.apk ${GITHUB_WORKSPACE}/Subsurface-mobile.arm64.apk
|
|
|
|
cp /__w/subsurface/subsurface-mobile-build-arm/*mobile*/build/outputs/apk/debug/subsurface-mobile-armeabi-v7a-debug.apk ${GITHUB_WORKSPACE}/Subsurface-mobile.apk
|
2019-10-18 09:32:38 -07:00
|
|
|
|
2019-10-26 22:28:30 -04:00
|
|
|
- name: prepare PR artifacts
|
2019-10-25 22:07:03 -04:00
|
|
|
if: github.event_name == 'pull_request'
|
2019-10-25 16:53:48 -04:00
|
|
|
run: |
|
2019-10-26 22:28:30 -04:00
|
|
|
mkdir -p Android-artifacts
|
|
|
|
mv Subsurface-mobile.apk Subsurface-mobile.arm64.apk Android-artifacts
|
|
|
|
|
|
|
|
- name: PR artifacts
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: Android-artifacts
|
|
|
|
path: Android-artifacts
|