Browse Source

Merge pull request #7 from RobertCNelson/quick-ci-setup

add quick ci Jenkinsfile
MichaelZhuxx 3 years ago
parent
commit
eb4a9b3c12
2 changed files with 22 additions and 0 deletions
  1. 11 0
      Jenkinsfile
  2. 11 0
      build.sh

+ 11 - 0
Jenkinsfile

@@ -0,0 +1,11 @@
+pipeline {
+    agent { label 'amd64'}
+
+    stages {
+        stage('Build') {
+            steps {
+                sh '/bin/bash ./build.sh'
+            }
+        }
+    }
+}

+ 11 - 0
build.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+
+CORES=$(getconf _NPROCESSORS_ONLN)
+
+make clean || true
+make distclean || true
+
+git submodule sync
+git submodule update --recursive --init
+
+make -j${CORES}