Browse Source

enable windows builds

Grant Limberg 5 years ago
parent
commit
cea297b69d
1 changed files with 25 additions and 0 deletions
  1. 25 0
      Jenkinsfile

+ 25 - 0
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"]