mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-29 21:12:55 +08:00
update ci
This commit is contained in:
parent
0c382227c5
commit
4ca856c365
52
.github/workflows/android-qt5_15_2.yml
vendored
52
.github/workflows/android-qt5_15_2.yml
vendored
@ -1,52 +0,0 @@
|
|||||||
name: android-qt5_15_2
|
|
||||||
on:
|
|
||||||
# push代码时触发workflow
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '3rdparty/**'
|
|
||||||
- 'examples/**'
|
|
||||||
- 'mkspecs/**'
|
|
||||||
- 'src/**'
|
|
||||||
- '.qmake.conf'
|
|
||||||
- 'TaoQuick.pro'
|
|
||||||
- '.github/workflows/android-qt5_15_2.yml'
|
|
||||||
# pull_request时触发workflow
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '3rdparty/**'
|
|
||||||
- 'examples/**'
|
|
||||||
- 'mkspecs/**'
|
|
||||||
- 'src/**'
|
|
||||||
- '.qmake.conf'
|
|
||||||
- 'TaoQuick.pro'
|
|
||||||
- '.github/workflows/android-qt5_15_2.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
|
|
||||||
uses: jurplel/install-qt-action@v2.13.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@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
|
|
35
.github/workflows/android.yml
vendored
35
.github/workflows/android.yml
vendored
@ -26,20 +26,39 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04]
|
include:
|
||||||
qt_ver: [5.12.10]
|
- qt_ver: 5.12.10
|
||||||
qt_target: [android]
|
qt_arch: android_x86
|
||||||
qt_arch: [android_x86,android_armv7,android_arm64_v8a]
|
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:
|
steps:
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
|
if: ${{ matrix.qt_ver == '5.12.10' }}
|
||||||
with:
|
with:
|
||||||
# Version of Qt to install
|
|
||||||
version: ${{ matrix.qt_ver }}
|
version: ${{ matrix.qt_ver }}
|
||||||
# Target platform for build
|
|
||||||
target: ${{ matrix.qt_target }}
|
target: ${{ matrix.qt_target }}
|
||||||
# Architecture for Windows/Android
|
arch: ${{ matrix.qt_arch }}
|
||||||
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 }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
@ -39,7 +39,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
|
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
|
||||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
|
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UMBCS /D_UNICODE /DUNICODE")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_UNICODE /DUNICODE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user