From cea297b69d691cce8ef133bf7dc1cb3ebb1fa15d Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 17 Jun 2020 12:04:29 -0700 Subject: [PATCH] enable windows builds --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4f1d4b39a..284190202 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,7 @@ pipeline { tasks << buildDebianNative() tasks << buildCentosNative() tasks << buildMacOS() + tasks << buildWindows() parallel tasks } @@ -54,6 +55,30 @@ def buildMacOS() { return tasks } +def buildWindows() { + def tasks = [:] + tasks << getTasks(['windows'], ['amd64'], { unused1, unused2 -> + def myNode = { + node ('windows') { + dir ("build") { + checkout scm + dir ("build") { + bat """ + CALL C:\\MinGW\\set_distro_paths.bat + cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. + make -j8 + """ + } + cleanWs deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true + } + } + } + return myNode + }) + + return tasks +} + def buildStaticBinaries() { def tasks = [:] def dist = ["alpine"]