added matrix for all android arch

This commit is contained in:
vladimir.kuznetsov 2022-11-27 12:32:45 +03:00
parent c85ad470ba
commit 2e5171c205
5 changed files with 41 additions and 29 deletions

View file

@ -46,23 +46,11 @@ jobs:
Build-Windows: Build-Windows:
name: Build-Windows name: Build-Windows
runs-on: windows-latest runs-on: windows-latest
continue-on-error: true
strategy:
matrix:
arch: [64]
include:
- qt-arch: 'win64_msvc2019_64'
arch: 64
- qt-msvc-path: 'msvc2019_64'
arch: 64
- msvc-arch: 'x64'
arch: 64
env: env:
QT_VERSION: 6.4.1 QT_VERSION: 6.4.1
QIF_VERSION: 4.5 QIF_VERSION: 4.5
BUILD_ARCH: ${{ matrix.arch }} BUILD_ARCH: 64
steps: steps:
- name: 'Get sources' - name: 'Get sources'
@ -80,7 +68,7 @@ jobs:
version: ${{ env.QT_VERSION }} version: ${{ env.QT_VERSION }}
host: 'windows' host: 'windows'
target: 'desktop' target: 'desktop'
arch: '${{ matrix.qt-arch }}' arch: 'win64_msvc2019_64'
modules: 'qtremoteobjects qt5compat' modules: 'qtremoteobjects qt5compat'
dir: ${{ runner.temp }} dir: ${{ runner.temp }}
setup-python: 'true' setup-python: 'true'
@ -91,13 +79,13 @@ jobs:
- name: 'Setup mvsc' - name: 'Setup mvsc'
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
with: with:
arch: ${{ matrix.msvc-arch }} arch: 'x64'
- name: 'Build project' - name: 'Build project'
shell: cmd shell: cmd
run: | run: |
set BUILD_ARCH=${{ env.BUILD_ARCH }} set BUILD_ARCH=${{ env.BUILD_ARCH }}
set QT_BIN_DIR="${{ runner.temp }}\\Qt\\${{ env.QT_VERSION }}\\${{ matrix.qt-msvc-path }}\\bin" set QT_BIN_DIR="${{ runner.temp }}\\Qt\\${{ env.QT_VERSION }}\\msvc2019_64\\bin"
set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin" set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
call deploy\\build_windows.bat call deploy\\build_windows.bat
@ -117,7 +105,18 @@ jobs:
with: with:
xcode-version: '13.4' xcode-version: '13.4'
- name: 'Install Qt' - name: 'Install desktop Qt'
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
host: 'mac'
target: 'desktop'
arch: 'clang_64'
modules: 'qtremoteobjects qt5compat'
dir: ${{ runner.temp }}
set-env: 'true'
- name: 'Install ios Qt'
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: ${{ env.QT_VERSION }} version: ${{ env.QT_VERSION }}
@ -128,7 +127,6 @@ jobs:
setup-python: 'true' setup-python: 'true'
set-env: 'true' set-env: 'true'
extra: '--external 7z' extra: '--external 7z'
aqtversion: '==3.0.*'
- name: 'Install go' - name: 'Install go'
uses: actions/setup-go@v3 uses: actions/setup-go@v3
@ -205,19 +203,37 @@ jobs:
Build-Android: Build-Android:
name: 'Build-Android' name: 'Build-Android'
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
arch: ['android_x86_64', 'android_x86'] #, 'android_armv7', 'android_arm64_v8a']
env: env:
QT_VERSION: 6.4.1 QT_VERSION: 6.4.1
QIF_VERSION: 4.5 QIF_VERSION: 4.5
steps: steps:
- name: 'Install Qt' - name: 'Install desktop Qt'
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
modules: 'qtremoteobjects qt5compat'
dir: ${{ runner.temp }}
setup-python: 'true'
set-env: 'true'
extra: '--external 7z'
- name: 'Install android Qt'
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: ${{ env.QT_VERSION }} version: ${{ env.QT_VERSION }}
host: 'linux' host: 'linux'
target: 'android' target: 'android'
arch: 'android' arch: ${{ matrix.arch }}
modules: 'qtremoteobjects qt5compat' modules: 'qtremoteobjects qt5compat'
dir: ${{ runner.temp }} dir: ${{ runner.temp }}
setup-python: 'true' setup-python: 'true'
@ -251,5 +267,5 @@ jobs:
unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ; unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ;
fi fi
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/android/bin export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/${{ matrix.arch }}/bin
bash deploy/build_android.sh bash deploy/build_android.sh

View file

@ -8,7 +8,7 @@ TEMPLATE = app
IS_CI=$$(CI) IS_CI=$$(CI)
!isEmpty(IS_CI){ !isEmpty(IS_CI){
message("Detected CI env") message("Detected CI env")
CONFIG += silent ccache CONFIG += silent #ccache
} }
CONFIG += qtquickcompiler CONFIG += qtquickcompiler
@ -248,6 +248,9 @@ android {
# As QAndroidBinder is not yet implemented with a public api # As QAndroidBinder is not yet implemented with a public api
QT+=core-private QT+=core-private
ANDROID_ABIS=ANDROID_TARGET_ARCH ANDROID_ABIS=ANDROID_TARGET_ARCH
# for not changing qtkeychain sources for qt6
QT -= androidextras
} }
else { else {
QT += androidextras QT += androidextras

View file

@ -36,7 +36,6 @@ echo "Using Qt in $QT_BIN_DIR"
echo "Using Android SDK in $ANDROID_SDK_ROOT" echo "Using Android SDK in $ANDROID_SDK_ROOT"
echo "Using Android NDK in $ANDROID_NDK_ROOT" echo "Using Android NDK in $ANDROID_NDK_ROOT"
# Checking env # Checking env
$QT_BIN_DIR/qmake -v $QT_BIN_DIR/qmake -v
$ANDROID_NDK_HOME/prebuilt/linux-x86_64/bin/make -v $ANDROID_NDK_HOME/prebuilt/linux-x86_64/bin/make -v

View file

@ -1,10 +1,6 @@
#!/bin/bash #!/bin/bash
echo "Build script started ..." echo "Build script started ..."
ls "/Users/runner/work/_temp/Qt/6.4.0/"
# sed 's/macos/ios/' /Users/runner/work/_temp/Qt/6.4.0/ios/bin/qmake > /Users/runner/work/_temp/Qt/6.4.0/ios/bin/qmake
cat /Users/runner/work/_temp/Qt/6.4.0/ios/bin/qmake
set -o errexit -o nounset set -o errexit -o nounset
# Hold on to current directory # Hold on to current directory

View file

@ -1,8 +1,6 @@
#!/bin/bash #!/bin/bash
echo "Build script started ..." echo "Build script started ..."
ls $QT_BIN_DIR
set -o errexit -o nounset set -o errexit -o nounset
while getopts n: flag while getopts n: flag