[commit: ghc] wip/jenkins: Build from source distribution (2b88a0f)

git at git.haskell.org git at git.haskell.org
Mon May 29 18:13:43 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/2b88a0f518a18e9401dee7ee05cf63d6b43d5adb/ghc

>---------------------------------------------------------------

commit 2b88a0f518a18e9401dee7ee05cf63d6b43d5adb
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon May 29 13:55:58 2017 -0400

    Build from source distribution


>---------------------------------------------------------------

2b88a0f518a18e9401dee7ee05cf63d6b43d5adb
 Jenkinsfile | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 60d0b9d..ba107d9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,17 @@ properties(
       ])
   ])
 
+
+stage("Build source distribution") {
+  node() {
+    checkout csm
+    sh "git submodule update --init --recursive"
+    sh "make sdist"
+    sh "mv ghc-*.tar.xz" "ghc-src.tar.xz"
+    stash(name: 'source-dist', includes: 'ghc-src.tar.xz')
+  }
+}
+
 parallel (
   "linux x86-64"       : {
     node(label: 'linux && amd64') {buildGhc(runNoFib: params.runNofib)}
@@ -56,8 +67,9 @@ def buildGhc(params) {
   boolean unreg = params?.unreg ?: false
 
   stage('Checkout') {
-    checkout scm
-    sh "git submodule update --init --recursive"
+    unstash(name: "source-dist")
+    sh 'tar -xf ghc-src.tar.xz'
+    dir 'ghc-*'
   }
 
   stage('Configure') {



More information about the ghc-commits mailing list