blob: a83988f751df26b3633aa0a5c6275303ada11fdb [file] [log] [blame]
LuK13374ddfd812022-08-23 00:07:40 +02001name: build
2
LuK1337b411b632022-12-01 17:04:46 +01003on: [push, pull_request, workflow_dispatch]
LuK13374ddfd812022-08-23 00:07:40 +02004
5jobs:
6 build:
7 runs-on: ubuntu-latest
8
9 steps:
10 - name: Checkout repo
Luca Stefani732a7062023-08-04 10:50:45 +020011 uses: actions/checkout@v3
LuK13374ddfd812022-08-23 00:07:40 +020012
Luca Stefani732a7062023-08-04 10:50:45 +020013 - name: Setup JDK 17
14 uses: actions/setup-java@v3
LuK13374ddfd812022-08-23 00:07:40 +020015 with:
Luca Stefani732a7062023-08-04 10:50:45 +020016 distribution: 'zulu'
17 java-version: 17
LuK13374ddfd812022-08-23 00:07:40 +020018
19 - name: Build with Gradle
LuK133773064252022-12-01 19:02:25 +010020 run: ./gradlew assembleDebug
LuK13374ddfd812022-08-23 00:07:40 +020021
LuK13375cd50582023-09-11 16:46:01 +020022 - name: Generate Android.bp
23 run: |
24 ./gradlew app:generateBp
25 if [[ ! -z $(git status -s) ]]; then
26 git status
27 exit -1
28 fi
29
LuK13374ddfd812022-08-23 00:07:40 +020030 - uses: actions/upload-artifact@v3
31 with:
32 name: app-debug.apk
33 path: app/build/outputs/apk/debug/app-debug.apk