Skip to content

Commit

Permalink
add android config
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Dec 2, 2020
1 parent 4f61d0b commit 6c09dc1
Show file tree
Hide file tree
Showing 31 changed files with 47 additions and 1,963 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
# 5.9.8 版本低,需要额外设置工具链。这里暂不支持。
qt_ver: [5.15.2]
qt_target: [android]
# qt_arch: [android_x86,android_armv7,android_arm64_v8a]
# android_arm64_v8a 暂时不支持. install-qt-action 依赖的aqtinstall版本为0.5*,需要升级
# qt_arch: [android_x86,android_armv7]
# exclude:
# - qt_ver: 5.9.8
# qt_arch: android_arm64_v8a

steps:
- name: Install Qt
# if: steps.cacheqt.outputs.cache-hit != 'true'
- name: Install Qt 5.15.2
uses: jurplel/[email protected]
with:
# Version of Qt to install
version: ${{ matrix.qt_ver }}
# Target platform for build
target: ${{ matrix.qt_target }}
target: android
# Architecture for Windows/Android
# arch: ${{ matrix.qt_arch }}
# arch: ${{ matrix.qt_arch }}
- uses: actions/checkout@v1
with:
fetch-depth: 1
Expand Down
45 changes: 14 additions & 31 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,41 @@ on:
- 'LICENSE'
- "doc/**"
- "preview/**"
- ".github/workflows/ios.yml"
- ".github/workflows/macos.yml"
- ".github/workflows/ubuntu.yml"
- ".github/workflows/windows.yml"
- ".github/workflows/ios*.yml"
- ".github/workflows/macos*.yml"
- ".github/workflows/ubuntu*.yml"
- ".github/workflows/windows*.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/ios*.yml"
- ".github/workflows/macos*.yml"
- ".github/workflows/ubuntu*.yml"
- ".github/workflows/windows*.yml"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- qt_ver: 5.12.10
qt_arch: android_x86
- qt_ver: 5.12.10
qt_arch: android_armv7
- qt_ver: 5.12.10
qt_arch: android_arm64_v8a
- qt_ver: 5.15.2
qt_arch: ''

os: [ubuntu-20.04]
qt_ver: [5.12.10]
qt_target: [android]
qt_arch: [android_x86,android_armv7,android_arm64_v8a]
steps:
- name: Install Qt 5.12.10
if: ${{ matrix.qt_ver }} == '5.12.10'
uses: jurplel/[email protected]
with:
# Version of Qt to install
version: ${{ matrix.qt_ver }}
# Target platform for build
target: android
target: ${{ matrix.qt_target }}
# Architecture for Windows/Android
arch: ${{ matrix.qt_arch }}
- name: Install Qt 5.15.2
if: ${{ matrix.qt_ver }} == '5.15.2'
uses: jurplel/[email protected]
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
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/backup/android-arm64_v8a-qt5_12_10.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/backup/android-armv7-qt5_12_10.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/backup/android-x86-qt5_12_10.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/backup/ios-macos10_15-qt5_12_10.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/backup/ios-macos10_15-qt5_15_2.yml

This file was deleted.

Loading

0 comments on commit 6c09dc1

Please sign in to comment.