From 00401430f7c7ab4e8282c790c783854afc4a3a58 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Fri, 30 Dec 2022 09:13:11 -0700 Subject: [PATCH] actions: create ci workflow Create a github actions workflow that automatically produces artifacts. --- .github/workflows/android.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 000000000..a80d3422c --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,38 @@ +name: Android CI + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + - name: Run pre-build steps + uses: nttld/setup-ndk@v1.2.0 + id: setup-ndk + with: + ndk-version: r21e + add-to-path: false + - run: python3 prebuild.py + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build Debug APK with Gradle + run: ./gradlew buildDebug + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.1 + with: + name: Auxio_Canary.apk + path: ./app/build/intermediates/apk/debug/app-debug.apk