From 9a8f498e2be88e08d0fd350e3e0fc87680068e7d 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 12:55:03 +0300 Subject: [PATCH] Test Qt Dependencis --- Jenkinsfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d357448..4e81be0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,27 +7,27 @@ pipeline { steps { cleanWs() checkout scm +bat ''' + call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" - 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 -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 - cmake --build build\\windows + if exist dist\\windows rmdir /s /q dist\\windows + mkdir dist\\windows - if exist dist\\windows rmdir /s /q dist\\windows - mkdir dist\\windows + copy build\\windows\\test_app.exe dist\\windows\\test_app.exe - copy build\\windows\\test_app.exe dist\\windows\\test_app.exe + for /f "delims=" %%i in ('dir /b /s C:\\vcpkg\\installed\\x64-windows\\tools\\Qt6\\windeployqt.exe') do set WINDEPLOYQT=%%i - C:\\vcpkg\\installed\\x64-windows\\tools\\Qt6\\bin\\windeployqt.exe ^ - --release ^ - --no-translations ^ - dist\\windows\\test_app.exe - ''' + "%WINDEPLOYQT%" --release --no-translations dist\\windows\\test_app.exe + + xcopy /Y /I C:\\vcpkg\\installed\\x64-windows\\bin\\*.dll dist\\windows\\ +''' archiveArtifacts artifacts: 'dist/windows/**', fingerprint: true }