minetest/.github/workflows/android.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

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'
- 'irr/**.[ch]'
- 'irr/**.cpp'
2023-12-20 21:35:19 +01:00
- '**/CMakeLists.txt'
- 'cmake/Modules/**'
- 'android/**'
2020-05-24 12:57:05 +02:00
- '.github/workflows/android.yml'
pull_request:
paths:
- 'lib/**.[ch]'
- 'lib/**.cpp'
- 'src/**.[ch]'
- 'src/**.cpp'
2023-12-20 21:35:19 +01:00
- '**/CMakeLists.txt'
- 'cmake/Modules/**'
- 'android/**'
2020-05-24 12:57:05 +02:00
- '.github/workflows/android.yml'
jobs:
build:
runs-on: ubuntu-20.04
2020-05-24 12:57:05 +02:00
steps:
2024-02-17 15:34:40 +01:00
- uses: actions/checkout@v4
- name: Install deps
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
run: cd android; ./gradlew assemblerelease
2020-05-24 12:57:05 +02:00
- name: Save armeabi artifact
2024-02-17 15:34:40 +01:00
uses: actions/upload-artifact@v4
2020-05-24 12:57:05 +02:00
with:
name: Minetest-armeabi-v7a.apk
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
2024-02-17 15:34:40 +01:00
uses: actions/upload-artifact@v4
2020-05-24 12:57:05 +02:00
with:
name: Minetest-arm64-v8a.apk
path: android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
- name: Save x86 artifact
2024-02-17 15:34:40 +01:00
uses: actions/upload-artifact@v4
with:
name: Minetest-x86.apk
path: android/app/build/outputs/apk/release/app-x86-release-unsigned.apk
- name: Save x86_64 artifact
2024-02-17 15:34:40 +01:00
uses: actions/upload-artifact@v4
with:
name: Minetest-x86_64.apk
path: android/app/build/outputs/apk/release/app-x86_64-release-unsigned.apk