From 75d2b9242aab88730db1098b3705a22742c7b8cb Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Fri, 9 Oct 2020 15:54:05 +0200 Subject: [PATCH] Windows ninja (#29) * Building on Windows using Ninja --- Jenkinsfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8394c5a..6b25e2e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,9 +96,9 @@ windows: { deleteDir(); checkoutGit(); } - stage('windows/build') { + stage('windows/build-msvc') { cmakeBuild([ - buildDir: 'build', + buildDir: 'build-msvc', generator: 'Visual Studio 16 2019', installation: "InSearchPath", steps: [[ args: "-- /nologo /m:4", withCmake: true ]] @@ -108,6 +108,18 @@ windows: { tool: msBuild() ) } + stage('windows/build-ninja') { + bat( + script: """ + call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x64 + if not exist build-ninja mkdir build-ninja + cd build-ninja + cmake -G Ninja .. + cmake --build . -- -j 4 all + """, + label: 'Generate build-scripts with cmake and execute them' + ) + } } // node('windows') }, macos: {