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'
|
2022-12-07 16:29:25 +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'
|
2022-12-07 16:29:25 +02:00
|
|
|
- '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
|
2022-12-07 16:29:25 +02:00
|
|
|
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:
|
2021-12-03 04:09:23 +06:00
|
|
|
name: MultiCraft-armeabi-v7a.apk
|
2022-12-07 16:29:25 +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-04-09 13:05:37 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-05-24 12:57:05 +02:00
|
|
|
with:
|
2021-12-03 04:09:23 +06:00
|
|
|
name: MultiCraft-arm64-v8a.apk
|
2022-12-07 16:29:25 +02:00
|
|
|
path: Android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
|