From ca2fedc22e5e4d5e879683ad4d7e36e1a95f030c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9=20=D0=9F?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= Date: Sat, 2 May 2026 03:29:46 +0300 Subject: [PATCH] Test Qt Dependencis --- Jenkinsfile | 59 ++++++++++++++++++++--------------------------------- 1 file changed, 22 insertions(+), 37 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e6e3f85..d357448 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,50 +2,35 @@ pipeline { agent none stages { - stage('Build Linux') { - agent { label 'linux' } + stage('Build Windows Qt') { + agent { label 'windows' } steps { cleanWs() checkout scm - sh ''' - cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release - cmake --build build/linux + bat ''' + call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" + + cmake -S . -B build\\windows -G Ninja ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ^ + -DVCPKG_TARGET_TRIPLET=x64-windows + + cmake --build build\\windows + + if exist dist\\windows rmdir /s /q dist\\windows + mkdir dist\\windows + + copy build\\windows\\test_app.exe dist\\windows\\test_app.exe + + C:\\vcpkg\\installed\\x64-windows\\tools\\Qt6\\bin\\windeployqt.exe ^ + --release ^ + --no-translations ^ + dist\\windows\\test_app.exe ''' - archiveArtifacts artifacts: 'build/linux/test_app', fingerprint: true + archiveArtifacts artifacts: 'dist/windows/**', fingerprint: true } } - -stage('Build Windows') { - agent { label 'windows' } - steps { - cleanWs() - checkout scm - - bat ''' - call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" - - cmake -S . -B build\\windows -G Ninja ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ^ - -DVCPKG_TARGET_TRIPLET=x64-windows - - cmake --build build\\windows - - if exist dist\\windows rmdir /s /q dist\\windows - mkdir dist\\windows - - copy build\\windows\\test_app.exe dist\\windows\\test_app.exe - - C:\\vcpkg\\installed\\x64-windows\\tools\\Qt6\\bin\\windeployqt.exe ^ - --release ^ - --no-translations ^ - dist\\windows\\test_app.exe - ''' - - archiveArtifacts artifacts: 'dist/windows/**', fingerprint: true - } -} } } \ No newline at end of file