enable windows builds

This commit is contained in:
Grant Limberg 2020-06-17 12:04:29 -07:00
parent c348bfff30
commit cea297b69d
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A

25
Jenkinsfile vendored
View file

@ -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"]