Skip to content

Commit

Permalink
win fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Dec 3, 2023
1 parent 00c99a5 commit 1b8db58
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions liblcf/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ pipeline {
steps {
echo "Build for Windows ${BITS} bit - ${CONFIG}"
bat label: 'cmake', script: """
if ${BITS}==32 (SET arg=amd64_x86) else (SET arg=x64)
call %VCVARSALL2017% %arg%
if ${BITS}==32 (call %VCVARSALL2017% amd64_x86) else (call %VCVARSALL2017% x64)
if ${CONFIG}==debug (SET type=Debug) else (SET type=RelWithDebInfo)
if ${BITS}==32 (SET triplet=x86-windows-static) else (SET triplet=x64-windows-static)
Expand All @@ -143,19 +142,28 @@ pipeline {
-DCMAKE_TOOLCHAIN_FILE="%EASYDEV_VCPKG%\\scripts\\buildsystems\\vcpkg.cmake"^
-DBUILD_SHARED_LIBS=OFF^
-DCMAKE_INSTALL_PREFIX="%CD%\\build-${BITS}"
cmake --build ${CONFIG}
"""
}
}
stage('Test') {
steps {
echo "Test for Windows ${BITS} bit - ${CONFIG}"
bat "cmake --build ${CONFIG} --target check"
bat """
if ${BITS}==32 (call %VCVARSALL2017% amd64_x86) else (call %VCVARSALL2017% x64)
cmake --build ${CONFIG} --target check
"""
}
}
stage('Install') {
steps {
echo "Install for Windows ${BITS} bit - ${CONFIG}"
bat "cmake --build ${CONFIG} --target install"
bat """
if ${BITS}==32 (call %VCVARSALL2017% amd64_x86) else (call %VCVARSALL2017% x64)
cmake --build ${CONFIG} --target install
"""
}
}
}
Expand Down

0 comments on commit 1b8db58

Please sign in to comment.