2019-10-18 16:32:38 +00:00
|
|
|
name: Android
|
2019-10-26 01:04:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-18 16:32:38 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildInContainer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2020-04-24 22:24:43 +00:00
|
|
|
image: docker://subsurface/android-build-container:5.13.12
|
2019-10-18 16:32:38 +00: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 22:24:43 +00: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 16:32:38 +00:00
|
|
|
|
2019-10-27 02:28:30 +00:00
|
|
|
- name: prepare PR artifacts
|
2019-10-26 02:07:03 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2019-10-25 20:53:48 +00:00
|
|
|
run: |
|
2019-10-27 02:28:30 +00: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
|