Skip to content
Permalink
Browse files

Android: add ci with saving artifacts

  • Loading branch information
MoNTE48 authored and rubenwardy committed Oct 13, 2020
1 parent 05436fb commit e831ebd63bd8d173cc3ef10cb7d2ff2ed9f9090d
Showing with 46 additions and 1 deletion.
  1. +42 −0 .github/workflows/android.yml
  2. +4 −1 build/android/app/build.gradle
@@ -0,0 +1,42 @@
name: android

# build on c/cpp changes or workflow changes
on:
push:
paths:
- 'lib/**.[ch]'
- 'lib/**.cpp'
- 'src/**.[ch]'
- 'src/**.cpp'
- 'build/android/**'
- '.github/workflows/android.yml'
pull_request:
paths:
- 'lib/**.[ch]'
- 'lib/**.cpp'
- 'src/**.[ch]'
- 'src/**.cpp'
- 'build/android/**'
- '.github/workflows/android.yml'

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: cd build/android; ./gradlew assemblerelease
- name: Save armeabi artifact
uses: actions/upload-artifact@v2
with:
name: Minetest-armeabi-v7a.apk
path: build/android/app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned.apk
- name: Save arm64 artifact
uses: actions/upload-artifact@v2
with:
name: Minetest-arm64-v8a.apk
path: build/android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
@@ -11,8 +11,11 @@ android {
versionCode project.versionCode
}

// load properties
Properties props = new Properties()
props.load(new FileInputStream(file('../local.properties')))
def propfile = file('../local.properties')
if (propfile.exists())
props.load(new FileInputStream(propfile))

if (props.getProperty('keystore') != null) {
signingConfigs {

0 comments on commit e831ebd

Please sign in to comment.
You can’t perform that action at this time.