update format script #293
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: | |
paths: | |
- '3rdparty/**' | |
- 'examples/**' | |
- 'mkspecs/**' | |
- 'src/**' | |
- '.qmake.conf' | |
- 'TaoQuick.pro' | |
- '.github/workflows/android.yml' | |
# pull_request时触发workflow | |
pull_request: | |
paths: | |
- '3rdparty/**' | |
- 'examples/**' | |
- 'mkspecs/**' | |
- 'src/**' | |
- '.qmake.conf' | |
- 'TaoQuick.pro' | |
- '.github/workflows/android.yml' | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
qt_ver: [6.2.2] | |
qt_target: [android] | |
qt_arch: [android_x86,android_x86_64,android_armv7,android_arm64_v8a] | |
steps: | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
with: | |
# Version of Qt to install | |
version: ${{ matrix.qt_ver }} | |
# Target platform for build | |
target: ${{ matrix.qt_target }} | |
# Architecture for Windows/Android | |
arch: ${{ matrix.qt_arch }} | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
submodules: 'true' | |
- name: build android | |
run: | | |
export ANDROID_SDK_ROOT=$ANDROID_HOME | |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle | |
qmake | |
make |