Clean build directories before CMake
This commit is contained in:
Vendored
+18
-16
@@ -11,28 +11,30 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release
|
cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build build/linux
|
cmake --build build/linux
|
||||||
archiveArtifacts artifacts: 'build/linux/test_app', fingerprint: true
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
archiveArtifacts artifacts: 'build/linux/test_app', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Windows') {
|
stage('Build Windows') {
|
||||||
agent { label 'windows' }
|
agent { label 'windows' }
|
||||||
steps {
|
steps {
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
bat '''
|
bat '''
|
||||||
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
||||||
|
|
||||||
cmake -S . -B build\\windows -G Ninja ^
|
cmake -S . -B build\\windows -G Ninja ^
|
||||||
-DCMAKE_BUILD_TYPE=Release ^
|
-DCMAKE_BUILD_TYPE=Release ^
|
||||||
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
|
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
|
||||||
|
|
||||||
cmake --build build\\windows
|
cmake --build build\\windows
|
||||||
archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true
|
'''
|
||||||
'''
|
|
||||||
|
archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user