actions: create ci workflow
Create a github actions workflow that automatically produces artifacts.
This commit is contained in:
parent
f6b7a8f448
commit
00401430f7
1 changed files with 38 additions and 0 deletions
38
.github/workflows/android.yml
vendored
Normal file
38
.github/workflows/android.yml
vendored
Normal 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
|
Loading…
Reference in a new issue