]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Declarative Pipeline Jenkins environment
authorKonstantinos Margaritis <markos@freevec.org>
Fri, 16 Sep 2022 08:59:36 +0000 (11:59 +0300)
committerKonstantinos Margaritis <markos@freevec.org>
Fri, 16 Sep 2022 08:59:36 +0000 (11:59 +0300)
Jenkinsfile

index 7480b771e503e45f2f0f1c6704558e63a0269a27..ae31c74255577e50f502ec80da6540ce5076acc0 100644 (file)
@@ -332,8 +332,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-release-AVX2', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-release-AVX2', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -357,8 +361,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-release-AVX512', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-release-AVX512', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -382,8 +390,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-release-fat', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-release-fat', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Test") {
@@ -402,8 +414,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-SSE', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=no -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-SSE', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=no -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -427,8 +443,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-AVX2', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-AVX2', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -452,8 +472,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-AVX512', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-AVX512', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -477,8 +501,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-fat', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-fat', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Test") {
@@ -497,8 +525,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-release-arm', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-release-arm', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -522,8 +554,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-arm', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-arm', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -547,8 +583,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-release-power', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-release-power', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {
@@ -572,8 +612,12 @@ pipeline {
                             }
                         } 
                         stage("Build") {
+                            environment {
+                                CC=clang
+                                CXX=clang++
+                            }
                             steps {
-                                cmakeBuild buildDir: 'build-clang-debug-power', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]]
+                                cmakeBuild buildDir: 'build-clang-debug-power', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]]
                             }
                         }
                         stage("Unit Test") {