mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-31 21:22:58 +08:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: android-qt5_15_2
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '*.md'
|
|
- 'LICENSE'
|
|
- "doc/**"
|
|
- "preview/**"
|
|
- ".github/workflows/ios*.yml"
|
|
- ".github/workflows/macos*.yml"
|
|
- ".github/workflows/ubuntu*.yml"
|
|
- ".github/workflows/windows*.yml"
|
|
- ".github/workflows/android.yml"
|
|
# pull_request时触发workflow
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'LICENSE'
|
|
- "doc/**"
|
|
- "preview/**"
|
|
- ".github/workflows/ios*.yml"
|
|
- ".github/workflows/macos*.yml"
|
|
- ".github/workflows/ubuntu*.yml"
|
|
- ".github/workflows/windows*.yml"
|
|
- ".github/workflows/android.yml"
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04]
|
|
qt_ver: [5.15.2]
|
|
qt_target: [android]
|
|
|
|
steps:
|
|
- name: Install Qt 5.15.2
|
|
uses: jurplel/install-qt-action@v2.10.0
|
|
with:
|
|
# Version of Qt to install
|
|
version: ${{ matrix.qt_ver }}
|
|
# Target platform for build
|
|
target: android
|
|
# Architecture for Windows/Android
|
|
# arch: ${{ matrix.qt_arch }}
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: build android
|
|
run: |
|
|
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
|
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
|
|
qmake
|
|
make |