summaryrefslogtreecommitdiffstats
path: root/.github/workflows/android.yml
blob: c367bcff1103e93bbfa29cb389ceb9a52f12c4c7 (plain) (blame)
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
name: Android
on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  buildInContainer:
    runs-on: ubuntu-latest
    container:
      image: docker://subsurface/android-build-container:5.15.1

    steps:
    - name: checkout sources
      uses: actions/checkout@v1

    - name: run build
      run: |
        # 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 .
        ls -l
        git config --global user.email "ci@subsurface-divelog.org"
        git config --global user.name "Subsurface CI"
        bash -x ./subsurface/packaging/android/qmake-build.sh