Update workflow scripts #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: | |
- master | |
- dev** | |
pull_request: | |
branches: | |
- master | |
- dev** | |
jobs: | |
build_and_upload_artifacts: | |
name: Generate APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
- name: Prepare thirdparty | |
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf | |
- name: Build debug APK | |
run: bash ./gradlew assembleDev --stacktrace -Porion.CIBuild=true | |
- name: Read value from Properties-file | |
id: read_version_property | |
uses: christian-draeger/[email protected] | |
with: | |
path: './orion-viewer/version.properties' | |
property: 'orion.version.name' | |
- name: Upload arm7 APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: orion-viewer-dev-${{steps.read_version_property.outputs.value}}-${{github.run_number}}-arm7.zip | |
path: orion-viewer/build/outputs/apk/arm7/dev/*.apk | |
- name: Upload arm64 APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: orion-viewer-dev-${{steps.read_version_property.outputs.value}}-${{github.run_number}}-arm64.zip | |
path: orion-viewer/build/outputs/apk/arm64/dev/*.apk | |
- name: Upload x86 APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: orion-viewer-dev-${{steps.read_version_property.outputs.value}}-${{github.run_number}}-x86.zip | |
path: orion-viewer/build/outputs/apk/x86/dev/*.apk | |
- name: Upload x86_64 APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: orion-viewer-dev-${{steps.read_version_property.outputs.value}}-${{github.run_number}}-x86_64.zip | |
path: orion-viewer/build/outputs/apk/x86_64/dev/*.apk |