Test Qt Dependencis
This commit is contained in:
Vendored
+22
-37
@@ -2,50 +2,35 @@ pipeline {
|
|||||||
agent none
|
agent none
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build Linux') {
|
stage('Build Windows Qt') {
|
||||||
agent { label 'linux' }
|
agent { label 'windows' }
|
||||||
steps {
|
steps {
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
sh '''
|
bat '''
|
||||||
cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release
|
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
||||||
cmake --build build/linux
|
|
||||||
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user