2023-08-03 15:31:16 +00:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2023-08-04 08:50:45 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-08-03 15:31:16 +00:00
|
|
|
|
2023-08-04 08:50:45 +00:00
|
|
|
- name: Setup JDK 17
|
|
|
|
uses: actions/setup-java@v3
|
2023-08-03 15:31:16 +00:00
|
|
|
with:
|
2023-08-04 08:50:45 +00:00
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: 17
|
2023-08-03 15:31:16 +00:00
|
|
|
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew assembleDebug
|
|
|
|
|
2023-09-11 14:46:01 +00:00
|
|
|
- name: Generate Android.bp
|
|
|
|
run: |
|
|
|
|
./gradlew app:generateBp
|
|
|
|
if [[ ! -z $(git status -s) ]]; then
|
|
|
|
git status
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
2023-08-03 15:31:16 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: app-debug.apk
|
|
|
|
path: app/build/outputs/apk/debug/app-debug.apk
|