summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMaksim <MoNTE48@mail.ua>2020-05-24 12:57:05 +0200
committerrubenwardy <rw@rubenwardy.com>2020-10-13 20:28:31 +0100
commite831ebd63bd8d173cc3ef10cb7d2ff2ed9f9090d (patch)
tree58f0c169cd146516f3160d4642706d9df0f32aa3 /.github
parent05436fb551bb22b0a9c1d9f176a6891aa82d9cb2 (diff)
downloadminetest-e831ebd63bd8d173cc3ef10cb7d2ff2ed9f9090d.tar.gz
minetest-e831ebd63bd8d173cc3ef10cb7d2ff2ed9f9090d.tar.bz2
minetest-e831ebd63bd8d173cc3ef10cb7d2ff2ed9f9090d.zip
Android: add ci with saving artifacts
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/android.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
new file mode 100644
index 000000000..0fcfe2390
--- /dev/null
+++ b/.github/workflows/android.yml
@@ -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