summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-03-06 06:46:57 -0500
committerBen Gamari <ben@smart-cactus.org>2019-03-16 19:16:56 -0400
commit6764da436ae039645df2af1c1d53f7cd45a9638b (patch)
tree4068fa88208e5547808882065f0cb9e66d7d6bb6
parent1c1b63d63efe8b0f789aa7d5b87cfac3edd213eb (diff)
downloadhaskell-6764da436ae039645df2af1c1d53f7cd45a9638b.tar.gz
gitlab-ci: Explicitly set bindist tarball name
-rw-r--r--.gitlab-ci.yml17
-rw-r--r--mk/config.mk.in12
2 files changed, 17 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 483fd89d45..a64e805cd3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -132,7 +132,6 @@ hadrian-ghc-in-ghci:
make V=0 -j$THREADS WERROR=-Werror
- |
make binary-dist TAR_COMP_OPTS="-1"
- mv ghc-*.tar.xz ghc.tar.xz
- |
# Prepare to push git notes.
METRICS_FILE=$(mktemp)
@@ -150,7 +149,7 @@ hadrian-ghc-in-ghci:
junit: junit.xml
expire_in: 2 week
paths:
- - ghc.tar.xz
+ - ghc-*.tar.xz
- junit.xml
#################################
@@ -164,6 +163,7 @@ validate-x86_64-darwin:
- x86_64-darwin
variables:
GHC_VERSION: 8.6.3
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-apple-darwin.tar.xz"
MACOSX_DEPLOYMENT_TARGET: "10.7"
# Only Sierra and onwards supports clock_gettime. See #12858
ac_cv_func_clock_gettime: "no"
@@ -225,6 +225,7 @@ validate-x86_64-darwin:
allow_failure: true
variables:
TEST_ENV: "aarch64-linux-deb9"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-aarch64-linux-deb9.tar.xz"
cache:
key: linux-aarch64-deb9
tags:
@@ -256,6 +257,7 @@ nightly-aarch64-linux-deb9:
image: "registry.gitlab.haskell.org/ghc/ci-images/i386-linux-deb9:$DOCKER_REV"
variables:
TEST_ENV: "i386-linux-deb9"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-i386-deb9-linux.tar.xz"
cache:
key: linux-i386-deb9
@@ -286,6 +288,7 @@ nightly-i386-linux-deb9:
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
variables:
TEST_ENV: "x86_64-linux-deb9"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-deb9-linux.tar.xz"
cache:
key: linux-x86_64-deb9
@@ -325,6 +328,7 @@ validate-x86_64-linux-deb9-integer-simple:
variables:
INTEGER_LIBRARY: integer-simple
TEST_ENV: "x86_64-linux-deb9-integer-simple"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-deb9-linux-integer-simple.tar.xz"
nightly-x86_64-linux-deb9-integer-simple:
extends: .build-x86_64-linux-deb9
@@ -357,6 +361,7 @@ release-x86_64-linux-deb8:
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb8:$DOCKER_REV"
variables:
TEST_ENV: "x86_64-linux-deb8"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-deb8-linux.tar.xz"
only:
- tags
cache:
@@ -376,6 +381,7 @@ release-x86_64-linux-fedora27:
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora27:$DOCKER_REV"
variables:
TEST_ENV: "x86_64-linux-fedora27"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-fedora27-linux.tar.xz"
only:
- tags
cache:
@@ -452,6 +458,7 @@ validate-x86_64-windows:
variables:
GHC_VERSION: "8.6.2"
LANG: "en_US.UTF-8"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-mingw32.tar.xz"
script:
- |
set MSYSTEM=MINGW64
@@ -459,9 +466,7 @@ validate-x86_64-windows:
bash -c './configure --enable-tarballs-autodownload GHC=`pwd`/toolchain/bin/ghc HAPPY=`pwd`/toolchain/bin/happy ALEX=`pwd`/toolchain/bin/alex'
- bash -c "echo include mk/flavours/quick.mk > mk/build.mk"
- bash -c "PATH=`pwd`/toolchain/bin:$PATH make -j`mk/detect-cpu-count.sh`"
- - |
- bash -c "make binary-dist TAR_COMP_OPTS=-1"
- mv ghc-*.tar.xz ghc.tar.xz
+ - bash -c "PATH=`pwd`/toolchain/bin:$PATH make binary-dist TAR_COMP_OPTS=-1"
- bash -c 'make V=0 test THREADS=`mk/detect-cpu-count.sh` JUNIT_FILE=../../junit.xml'
cache:
key: x86_64-windows
@@ -472,7 +477,7 @@ validate-x86_64-windows:
reports:
junit: junit.xml
paths:
- - ghc.tar.xz
+ - ghc-*.tar.xz
- junit.xml
############################################################
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 22a3d3904e..0fc6d4dd16 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -384,12 +384,12 @@ GhcRtsWithLibdw=$(strip $(if $(filter $(TargetArch_CPP),i386 x86_64),@UseLibdw@,
#
################################################################################
-BINDIST = NO
-BIN_DIST_NAME = ghc-$(ProjectVersion)
-BIN_DIST_PREP_DIR = bindistprep/$(BIN_DIST_NAME)
-BIN_DIST_PREP_TAR = bindistprep/$(BIN_DIST_NAME)-$(TARGETPLATFORM).tar
-BIN_DIST_PREP_TAR_COMP = $(BIN_DIST_PREP_TAR).$(TAR_COMP_EXT)
-BIN_DIST_TAR_COMP = $(BIN_DIST_NAME)-$(TARGETPLATFORM).tar.$(TAR_COMP_EXT)
+BINDIST = NO
+BIN_DIST_NAME = ghc-$(ProjectVersion)
+BIN_DIST_PREP_DIR = bindistprep/$(BIN_DIST_NAME)
+BIN_DIST_PREP_TAR = bindistprep/$(BIN_DIST_NAME)-$(TARGETPLATFORM).tar
+BIN_DIST_PREP_TAR_COMP ?= $(BIN_DIST_PREP_TAR).$(TAR_COMP_EXT)
+BIN_DIST_TAR_COMP = $(BIN_DIST_NAME)-$(TARGETPLATFORM).tar.$(TAR_COMP_EXT)
# -----------------------------------------------------------------------------
# Utilities programs: flags