Skip to content

Commit

Permalink
Add android ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrisimx committed Dec 23, 2024
1 parent 6b3e5dc commit 7b3f814
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Android CI: build and test"

on:
push:
branches: [ "master", "add-ci" ]
pull_request:
branches: [ "master" ]
workflow_dispatch: # Allows you to run the workflow manually from the Actions tab

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build APK
run: ./gradlew assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v4.5.0
with:
name: app-release
path: app/build/outputs/apk/release/app-release-unsigned.apk

0 comments on commit 7b3f814

Please sign in to comment.