Skip to content

Commit

Permalink
Added github action yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
rob729 committed Oct 8, 2023
1 parent 2a32d62 commit b9ae81f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build debug APK
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- 'README.md'
- 'assets/**'
- '.github/**/*.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'

- name: Create debug directory
run: mkdir -p app/src/debug

- name: Decode google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES > app/src/debug/google-services.json

- name: Build debug APK and run jvm tests
run: ./gradlew assembleDebug --stacktrace

- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/full/debug/*.apk
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.externalNativeBuild
.cxx
local.properties
.idea

0 comments on commit b9ae81f

Please sign in to comment.