dup ids #13
Workflow file for this run
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 | |
on: | |
# push代码时触发workflow | |
push: | |
# pull_request时触发workflow | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
# - qt_ver: 5.12.10 | |
# qt_arch: android_x86 | |
# os: ubuntu-20.04 | |
# qt_target: android | |
# - qt_ver: 5.12.10 | |
# qt_arch: android_armv7 | |
# os: ubuntu-20.04 | |
# qt_target: android | |
# - qt_ver: 5.12.10 | |
# qt_arch: android_arm64_v8a | |
# os: ubuntu-20.04 | |
# qt_target: android | |
- qt_ver: 5.15.2 | |
# here no qt_arch, use default | |
os: ubuntu-20.04 | |
qt_target: android | |
steps: | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
if: ${{ matrix.qt_ver == '5.12.10' }} | |
with: | |
version: ${{ matrix.qt_ver }} | |
target: ${{ matrix.qt_target }} | |
arch: ${{ matrix.qt_arch }} | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
if: ${{ matrix.qt_ver == '5.15.2' }} | |
with: | |
version: ${{ matrix.qt_ver }} | |
target: ${{ matrix.qt_target }} | |
# here need not arch | |
# arch: ${{ matrix.qt_arch }} | |
modules: 'qtcharts qtwebengine qtscript' | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
submodules: 'true' | |
- name: Setup NDK path | |
shell: bash | |
run: echo "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV | |
# export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle | |
- name: build android | |
run: | | |
export ANDROID_SDK_ROOT=$ANDROID_HOME | |
# export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle | |
qmake | |
make all -j12 | |
make install INSTALL_ROOT=android-build | |
androiddeployqt --input $(ls *.json) --output android-build --android-platform android-33 --jdk $JAVA_HOME --gradle | |
- name: show filetrees | |
run: | | |
ls -R | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "v0.90.0" | |
prerelease: true | |
title: "Stellarium mobile PreRelease" | |
files: | | |
android-build/build/outputs/apk/debug/android-build-debug.apk | |