Merge remote-tracking branch 'remotes/origin/qt6-github-actions' into qmake-to-cmake-migration
This commit is contained in:
commit
2a80117d42
4 changed files with 275 additions and 3 deletions
271
.github/workflows/deploy.yml
vendored
Normal file
271
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,271 @@
|
||||||
|
name: 'Deploy workflow'
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build-Linux-Ubuntu:
|
||||||
|
name: 'Build-Linux-Ubuntu'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
QT_VERSION: 6.4.1
|
||||||
|
QIF_VERSION: 4.5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Install 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'
|
||||||
|
tools: 'tools_ifw'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Build project'
|
||||||
|
run: |
|
||||||
|
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin
|
||||||
|
export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
||||||
|
bash deploy/build_linux.sh
|
||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
Build-Windows:
|
||||||
|
name: Build-Windows
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
QT_VERSION: 6.4.1
|
||||||
|
QIF_VERSION: 4.5
|
||||||
|
BUILD_ARCH: 64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Install Qt'
|
||||||
|
uses: jurplel/install-qt-action@v3
|
||||||
|
with:
|
||||||
|
version: ${{ env.QT_VERSION }}
|
||||||
|
host: 'windows'
|
||||||
|
target: 'desktop'
|
||||||
|
arch: 'win64_msvc2019_64'
|
||||||
|
modules: 'qtremoteobjects qt5compat'
|
||||||
|
dir: ${{ runner.temp }}
|
||||||
|
setup-python: 'true'
|
||||||
|
tools: 'tools_ifw'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
|
- name: 'Setup mvsc'
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
with:
|
||||||
|
arch: 'x64'
|
||||||
|
|
||||||
|
- name: 'Build project'
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
set BUILD_ARCH=${{ env.BUILD_ARCH }}
|
||||||
|
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"
|
||||||
|
call deploy\\build_windows.bat
|
||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
Build-IOS:
|
||||||
|
name: 'Build-IOS'
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
QT_VERSION: 6.4.1
|
||||||
|
QIF_VERSION: 4.4
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Setup xcode'
|
||||||
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
with:
|
||||||
|
xcode-version: '13.4'
|
||||||
|
|
||||||
|
- 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
|
||||||
|
with:
|
||||||
|
version: ${{ env.QT_VERSION }}
|
||||||
|
host: 'mac'
|
||||||
|
target: 'ios'
|
||||||
|
modules: 'qtremoteobjects qt5compat'
|
||||||
|
dir: ${{ runner.temp }}
|
||||||
|
setup-python: 'true'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
|
- name: 'Install go'
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
|
||||||
|
- name: 'Setup gomobile'
|
||||||
|
run: |
|
||||||
|
export PATH=$PATH:~/go/bin
|
||||||
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
|
gomobile init
|
||||||
|
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Build project'
|
||||||
|
run: |
|
||||||
|
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/ios/bin"
|
||||||
|
export QT_IOS_BIN=$QT_BIN_DIR
|
||||||
|
export PATH=$PATH:~/go/bin
|
||||||
|
bash deploy/build_ios.sh
|
||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
Build-MacOS:
|
||||||
|
name: 'Build-MacOS'
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
QT_VERSION: 6.4.1
|
||||||
|
QIF_VERSION: 4.5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Setup xcode'
|
||||||
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
with:
|
||||||
|
xcode-version: '13.4'
|
||||||
|
|
||||||
|
- name: 'Install 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 }}
|
||||||
|
setup-python: 'true'
|
||||||
|
tools: 'tools_ifw'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Build project'
|
||||||
|
run: |
|
||||||
|
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/macos/bin"
|
||||||
|
export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
||||||
|
bash deploy/build_macos.sh
|
||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
Build-Android:
|
||||||
|
name: 'Build-Android'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch: ['android_x86_64', 'android_x86'] #, 'android_armv7', 'android_arm64_v8a']
|
||||||
|
|
||||||
|
env:
|
||||||
|
QT_VERSION: 6.4.1
|
||||||
|
QIF_VERSION: 4.5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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
|
||||||
|
with:
|
||||||
|
version: ${{ env.QT_VERSION }}
|
||||||
|
host: 'linux'
|
||||||
|
target: 'android'
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
modules: 'qtremoteobjects qt5compat'
|
||||||
|
dir: ${{ runner.temp }}
|
||||||
|
setup-python: 'true'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Setup Java'
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '8'
|
||||||
|
|
||||||
|
- name: 'Build project'
|
||||||
|
run: |
|
||||||
|
export NDK_VERSION=21d
|
||||||
|
export ANDROID_NDK_PLATFORM=android-21
|
||||||
|
export ANDROID_NDK_HOME=${{ runner.temp }}/android-ndk-r${NDK_VERSION}
|
||||||
|
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
|
||||||
|
|
||||||
|
if [ ! -f $ANDROID_NDK_ROOT/ndk-build ]; then
|
||||||
|
wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux-x86_64.zip -qO ${{ runner.temp }}/ndk.zip &&
|
||||||
|
unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ;
|
||||||
|
fi
|
||||||
|
|
||||||
|
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/${{ matrix.arch }}/bin
|
||||||
|
bash deploy/build_android.sh
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 2fd4dd60c04a29c6d1271fdd9ae25378b8f61ec8
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue