2020-05-24 12:57:05 +02:00
|
|
|
name: android
|
|
|
|
|
|
|
|
# build on c/cpp changes or workflow changes
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'lib/**.[ch]'
|
|
|
|
- 'lib/**.cpp'
|
|
|
|
- 'src/**.[ch]'
|
|
|
|
- 'src/**.cpp'
|
2021-06-21 21:51:42 +02:00
|
|
|
- 'android/**'
|
2020-05-24 12:57:05 +02:00
|
|
|
- '.github/workflows/android.yml'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'lib/**.[ch]'
|
|
|
|
- 'lib/**.cpp'
|
|
|
|
- 'src/**.[ch]'
|
|
|
|
- 'src/**.cpp'
|
2021-06-21 21:51:42 +02:00
|
|
|
- 'android/**'
|
2020-05-24 12:57:05 +02:00
|
|
|
- '.github/workflows/android.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-10-31 23:32:25 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-05-24 12:57:05 +02:00
|
|
|
steps:
|
2022-05-01 14:44:48 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-08 18:59:07 +02:00
|
|
|
- name: Install deps
|
2021-10-31 23:32:25 +01:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y --no-install-recommends gettext openjdk-11-jdk-headless
|
2020-05-24 12:57:05 +02:00
|
|
|
- name: Build with Gradle
|
2021-06-21 21:51:42 +02:00
|
|
|
run: cd android; ./gradlew assemblerelease
|
2020-05-24 12:57:05 +02:00
|
|
|
- name: Save armeabi artifact
|
2022-05-01 14:44:48 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-05-24 12:57:05 +02:00
|
|
|
with:
|
|
|
|
name: Minetest-armeabi-v7a.apk
|
2021-06-21 21:51:42 +02:00
|
|
|
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned.apk
|
2020-05-24 12:57:05 +02:00
|
|
|
- name: Save arm64 artifact
|
2022-05-01 14:44:48 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-05-24 12:57:05 +02:00
|
|
|
with:
|
|
|
|
name: Minetest-arm64-v8a.apk
|
2021-06-21 21:51:42 +02:00
|
|
|
path: android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
|