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-11-19 20:55:39 +00:00
|
|
|
image: docker://subsurface/android-build-container:5.15.1
|
2019-10-18 16:32:38 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: run build
|
|
|
|
run: |
|
2020-11-19 20:55:39 +00:00
|
|
|
# this is rather awkward, but it allows us to use the preinstalled
|
|
|
|
# Android and Qt versions with relative paths
|
|
|
|
cd $GITHUB_WORKSPACE/..
|
|
|
|
ln -s /android/5.15.* .
|
|
|
|
ln -s /android/build-tools .
|
|
|
|
ln -s /android/cmdline-tools .
|
|
|
|
ln -s /android/ndk .
|
|
|
|
ln -s /android/platform-tools .
|
|
|
|
ln -s /android/platforms .
|
|
|
|
ln -s /android/tools .
|
2019-10-18 16:32:38 +00:00
|
|
|
ls -l
|
2020-12-03 18:49:15 +00:00
|
|
|
git config --global user.email "ci@subsurface-divelog.org"
|
|
|
|
git config --global user.name "Subsurface CI"
|
2020-12-11 00:32:02 +00:00
|
|
|
# it turns out our build container doesn't have a native compiler
|
|
|
|
# yet ECM needs that
|
|
|
|
apt-get install --reinstall cpp-7 gcc-7-base libgcc-7-dev libcc1-0 gcc-7
|
2020-11-19 20:55:39 +00:00
|
|
|
bash -x ./subsurface/packaging/android/qmake-build.sh
|
2019-10-18 16:32:38 +00:00
|
|
|
|