1
0

46 lines
1.2 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'
- 'Android/**'
2020-05-24 12:57:05 +02:00
- '.github/workflows/android.yml'
pull_request:
paths:
- 'lib/**.[ch]'
- 'lib/**.cpp'
- 'src/**.[ch]'
- 'src/**.cpp'
- 'Android/**'
2020-05-24 12:57:05 +02:00
- '.github/workflows/android.yml'
jobs:
build:
2022-04-09 13:05:37 +02:00
runs-on: ubuntu-latest
2020-05-24 12:57:05 +02:00
steps:
- uses: actions/checkout@v2
2023-05-06 02:15:16 +03:00
- name: Set up JDK 17
2022-04-09 13:05:37 +02:00
uses: actions/setup-java@v3
2020-05-24 12:57:05 +02:00
with:
2022-04-09 13:05:37 +02:00
distribution: 'temurin'
2023-05-06 02:15:16 +03:00
java-version: '17'
2021-06-11 18:14:03 +12:00
- name: Install GNU gettext
run: sudo apt install gettext
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
2022-04-09 13:05:37 +02:00
uses: actions/upload-artifact@v3
2020-05-24 12:57:05 +02:00
with:
name: MultiCraft-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
2022-04-09 13:05:37 +02:00
uses: actions/upload-artifact@v3
2020-05-24 12:57:05 +02:00
with:
name: MultiCraft-arm64-v8a.apk
path: Android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk