LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 1 | name: build |
2 | |||||
LuK1337 | b411b63 | 2022-12-01 17:04:46 +0100 | [diff] [blame] | 3 | on: [push, pull_request, workflow_dispatch] |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 4 | |
5 | jobs: | ||||
6 | build: | ||||
7 | runs-on: ubuntu-latest | ||||
8 | |||||
9 | steps: | ||||
10 | - name: Checkout repo | ||||
Luca Stefani | 732a706 | 2023-08-04 10:50:45 +0200 | [diff] [blame] | 11 | uses: actions/checkout@v3 |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 12 | |
Luca Stefani | 732a706 | 2023-08-04 10:50:45 +0200 | [diff] [blame] | 13 | - name: Setup JDK 17 |
14 | uses: actions/setup-java@v3 | ||||
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 15 | with: |
Luca Stefani | 732a706 | 2023-08-04 10:50:45 +0200 | [diff] [blame] | 16 | distribution: 'zulu' |
17 | java-version: 17 | ||||
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 18 | |
19 | - name: Build with Gradle | ||||
LuK1337 | 7306425 | 2022-12-01 19:02:25 +0100 | [diff] [blame] | 20 | run: ./gradlew assembleDebug |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 21 | |
LuK1337 | 5cd5058 | 2023-09-11 16:46:01 +0200 | [diff] [blame] | 22 | - 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 | |||||
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 30 | - uses: actions/upload-artifact@v3 |
31 | with: | ||||
32 | name: app-debug.apk | ||||
33 | path: app/build/outputs/apk/debug/app-debug.apk |