Skip to content

Commit

Permalink
Windows ninja (#29)
Browse files Browse the repository at this point in the history
* Building on Windows using Ninja
  • Loading branch information
alexanderbock authored Oct 9, 2020
1 parent 76b025f commit 75d2b92
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
Expand All @@ -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: {
Expand Down

0 comments on commit 75d2b92

Please sign in to comment.