From ca1f7d52e54c8f96097c23bc914c8b3b2e6a0bc8 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Fri, 1 May 2020 16:06:17 +0200 Subject: [PATCH] Create Android workflow --- .github/workflows/android.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..07ea7f5 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,35 @@ +name: Android CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Fix gradlew permission + run: chmod +x gradlew + - name: Check + run: ./gradlew check --stacktrace + - name: Assemble + run: ./gradlew assembleDebug bundleDebug --stacktrace + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: app-debug.apk + path: app/build/outputs/apk/debug/app-debug.apk + - name: Upload AAB + uses: actions/upload-artifact@v2 + with: + name: app-debug.aab + path: app/build/outputs/bundle/debug/app-debug.aab