3 on: [push, pull_request]
6 CCACHE_BASEDIR: ${{ github.workspace }}
14 runs-on: ubuntu-latest
16 should_skip: ${{ steps.skip-check.outputs.should_skip }}
19 uses: fkirc/skip-duplicate-actions@master
21 concurrent_skipping: 'same_content'
25 if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
26 runs-on: ubuntu-latest
29 # since the NDK is newly installed every time, we have to use this to avoid cache misses
30 CCACHE_COMPILERCHECK: content
32 # even though we don't specify a specific version in our gradle files, the
33 # build fails without this because some arbitrary NDK version, that's
34 # weirdly not installed, is requested
36 run: yes | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669'
37 - uses: actions/checkout@v2
38 - uses: actions/cache@v2
41 key: ccache-android-${{ github.ref }}:${{ github.sha }}
43 ccache-android-${{ github.ref }}:
46 sudo apt-get install -qq ccache
47 echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
49 - uses: ./.github/actions/default
51 - if: ${{ success() }}
52 uses: actions/upload-artifact@v2
55 path: src/frontends/android/app/build/reports/lint-results.xml