forked from mirrors/principia
Also use new `archive: false` for artifact uploading where appropriate to prevent nested zips from happening
45 lines
966 B
YAML
45 lines
966 B
YAML
name: android
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/**'
|
|
- 'lib/**'
|
|
- 'android/**'
|
|
- 'data/**'
|
|
- 'packaging/**'
|
|
- 'CMakeLists.txt'
|
|
- '.github/workflows/android.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'src/**'
|
|
- 'lib/**'
|
|
- 'android/**'
|
|
- 'data/**'
|
|
- 'packaging/**'
|
|
- 'CMakeLists.txt'
|
|
- '.github/workflows/android.yml'
|
|
|
|
jobs:
|
|
android:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Build with gradle
|
|
run: |
|
|
cd android
|
|
./gradlew assemblerelease
|
|
|
|
- name: Save apk artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
path: android/principia/build/outputs/apk/release/principia-release-unsigned.apk
|
|
archive: false
|
|
if-no-files-found: error
|