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 |
| 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 |
LuK1337 | 7306425 | 2022-12-01 19:02:25 +0100 | [diff] [blame] | 19 | run: ./gradlew assembleDebug |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 20 | |
LuK1337 | 5cd5058 | 2023-09-11 16:46:01 +0200 | [diff] [blame^] | 21 | - 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 | |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 29 | - uses: actions/upload-artifact@v3 |
| 30 | with: |
| 31 | name: app-debug.apk |
| 32 | path: app/build/outputs/apk/debug/app-debug.apk |