actions: create ci workflow

Create a github actions workflow that automatically produces artifacts.
This commit is contained in:
Alexander Capehart 2022-12-30 09:13:11 -07:00 committed by Alexander Capehart
parent f6b7a8f448
commit 00401430f7
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

38
.github/workflows/android.yml vendored Normal file
View file

@ -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