Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
[qt6] Add CI pipelines for Qt6 builds on Windows and Linux
Dmitry Kazakov01f7fc16efa0
diff --git a/build-tools/ci-scripts/linux.yml b/build-tools/ci-scripts/linux.ymlindex 527cec2576..ae742a7935 100644--- a/build-tools/ci-scripts/linux.yml+++ b/build-tools/ci-scripts/linux.yml@@ -18,9 +18,11 @@ linux-build:KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE: TrueKRITACI_PUBLISH_BUILD_CONFIG: "upstream-ci-utilities/signing/publishbuild.ini"KRITACI_LINUX_PUBLISH_PLATFORM: linux+ EFFECTIVE_DEPS_REPO_BRANCH_NAME: $DEPS_REPO_BRANCH_NAME_LINUX+ EFFECTIVE_DEPS_BRANCH_NAME: $DEPS_BRANCH_NAME_LINUXinterruptible: truebefore_script:- - git clone https://invent.kde.org/packaging/krita-deps-management.git -b $DEPS_REPO_BRANCH_NAME_LINUX --depth=1+ - git clone https://invent.kde.org/packaging/krita-deps-management.git -b $EFFECTIVE_DEPS_REPO_BRANCH_NAME --depth=1- git clone https://invent.kde.org/packaging/krita-ci-utilities.git krita-deps-management/ci-utilities --depth=1- git clone https://invent.kde.org/sysadmin/ci-notary-service.git --depth=1- git clone https://invent.kde.org/sysadmin/ci-utilities.git upstream-ci-utilities --depth=1@@ -31,13 +33,31 @@ linux-build:# just silently hangs up. For this reason we don't use extra logging on Linux.- git config --global --add safe.directory $CI_PROJECT_DIR- - python3 -u krita-deps-management/tools/replace-branch-in-seed-file.py krita-deps-management/latest/krita-deps.yml -p -o branch-corrected-deps.yml -d $DEPS_BRANCH_NAME_LINUX+ - python3 -u krita-deps-management/tools/replace-branch-in-seed-file.py krita-deps-management/latest/krita-deps.yml -p -o branch-corrected-deps.yml -d $EFFECTIVE_DEPS_BRANCH_NAME- python3 -u krita-deps-management/tools/generate-deps-file.py -s branch-corrected-deps.yml -o .kde-ci.yml- python3 -u krita-deps-management/ci-utilities/run-ci-build.py --project $CI_PROJECT_NAME --branch $CI_COMMIT_REF_NAME --platform Linux/Qt5/Shared --skip-publishing- python3 -u build-tools/ci-scripts/build-appimage.py- python3 -u build-tools/ci-scripts/upload-nightly-packages.py --platform $KRITACI_LINUX_PUBLISH_PLATFORM --folder $CI_PROJECT_DIR/_packagingcoverage: '/^TOTAL.*\s+(\d+\%)$/'+linux-build-qt6-nightly:+ extends:+ - linux-build+ - .nightly-job-mixin+ interruptible: false+ variables:+ EFFECTIVE_DEPS_REPO_BRANCH_NAME: transition.now/qt6+ EFFECTIVE_DEPS_BRANCH_NAME: transition.now/qt6+ KDECI_EXTRA_CMAKE_ARGS: >+ -DHIDE_SAFE_ASSERTS=OFF+ -DBUILD_TESTING=ON+ -DBUILD_WITH_QT6=ON++linux-build-qt6-manual:+ extends:+ - linux-build-qt6-nightly+ - .ci-manual-job-mixin+linux-nightly:extends:- linux-builddiff --git a/build-tools/ci-scripts/windows.yml b/build-tools/ci-scripts/windows.ymlindex 12d5ceb197..5841b70402 100644--- a/build-tools/ci-scripts/windows.yml+++ b/build-tools/ci-scripts/windows.yml@@ -21,9 +21,11 @@ windows-build:KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE: TrueKRITACI_WINDOWS_SIGN_CONFIG: upstream-ci-utilities/signing/signwindowsbinaries.iniKRITACI_PUBLISH_BUILD_CONFIG: upstream-ci-utilities/signing/publishbuild.ini+ EFFECTIVE_DEPS_REPO_BRANCH_NAME: $DEPS_REPO_BRANCH_NAME_WINDOWS+ EFFECTIVE_DEPS_BRANCH_NAME: $DEPS_BRANCH_NAME_WINDOWSinterruptible: truebefore_script:- - git clone https://invent.kde.org/packaging/krita-deps-management.git -b $DEPS_REPO_BRANCH_NAME_WINDOWS --depth=1+ - git clone https://invent.kde.org/packaging/krita-deps-management.git -b $EFFECTIVE_DEPS_REPO_BRANCH_NAME --depth=1- git clone https://invent.kde.org/packaging/krita-ci-utilities.git krita-deps-management/ci-utilities --depth=1- git clone https://invent.kde.org/sysadmin/ci-notary-service.git --depth=1- git clone https://invent.kde.org/sysadmin/ci-utilities.git upstream-ci-utilities --depth=1@@ -33,13 +35,31 @@ windows-build:- pip install -r ci-notary-service/requirements.txtscript:- git config --global --add safe.directory $CI_PROJECT_DIR- - python -u krita-deps-management/tools/replace-branch-in-seed-file.py krita-deps-management/latest/krita-deps.yml -p -o branch-corrected-deps.yml -d $DEPS_BRANCH_NAME_WINDOWS+ - python -u krita-deps-management/tools/replace-branch-in-seed-file.py krita-deps-management/latest/krita-deps.yml -p -o branch-corrected-deps.yml -d $EFFECTIVE_DEPS_BRANCH_NAME- python -u krita-deps-management/tools/generate-deps-file.py -s branch-corrected-deps.yml -o .kde-ci.yml- python -u krita-deps-management/ci-utilities/run-ci-build.py --project $CI_PROJECT_NAME --branch $CI_COMMIT_REF_NAME --platform Windows/Qt5/Shared --skip-publishing 2>&1 | Tee-Object -FilePath "build-krita.log"- python -u build-tools/ci-scripts/build-windows-package.py 2>&1 | Tee-Object -FilePath "build-installers.log"- python -u build-tools/ci-scripts/upload-nightly-packages.py --platform windows --folder $CI_PROJECT_DIR 2>&1 | Tee-Object -FilePath "installers-publish.log"coverage: '/^TOTAL.*\s+(\d+\%)$/'+windows-build-qt6-nightly:+ extends:+ - windows-build+ - .nightly-job-mixin+ interruptible: false+ variables:+ EFFECTIVE_DEPS_REPO_BRANCH_NAME: transition.now/qt6+ EFFECTIVE_DEPS_BRANCH_NAME: transition.now/qt6+ KDECI_EXTRA_CMAKE_ARGS: >+ -DHIDE_SAFE_ASSERTS=OFF+ -DBUILD_TESTING=ON+ -DBUILD_WITH_QT6=ON++windows-build-qt6-manual:+ extends:+ - windows-build-qt6-nightly+ - .ci-manual-job-mixin+windows-nightly:extends:- windows-build