blob: 138752f4430ce4392b2a22c50defa8f294a91d0e [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
11 uses: actions/checkout@v1
12
13 - name: Setup JDK 11
14 uses: actions/setup-java@v1
15 with:
16 java-version: 11
17
18 - name: Build with Gradle
LuK133773064252022-12-01 19:02:25 +010019 run: ./gradlew assembleDebug
LuK13374ddfd812022-08-23 00:07:40 +020020
LuK13375cd50582023-09-11 16:46:01 +020021 - name: Generate Android.bp
22 run: |
23 ./gradlew app:generateBp
24 if [[ ! -z $(git status -s) ]]; then
25 git status
26 exit -1
27 fi
28
LuK13374ddfd812022-08-23 00:07:40 +020029 - uses: actions/upload-artifact@v3
30 with:
31 name: app-debug.apk
32 path: app/build/outputs/apk/debug/app-debug.apk