Skip to content

Commit d570547

Browse files
authored
Merge pull request #8827 from haskell/mergify/bp/3.10/pr-8818
Update GitLab CI (backport #8818)
2 parents 3986ee1 + d186bc2 commit d570547

File tree

2 files changed

+21
-67
lines changed

2 files changed

+21
-67
lines changed

.gitlab-ci.yml

+15-64
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
stages:
22
- build
33

4-
# Used for ci setup in the gitlab mirror of the project:
5-
# https://gitlab.haskell.org/haskell/haskell-language-server/-/pipelines
64
variables:
75
# Commit of ghc/ci-images repository from which to pull Docker images
8-
DOCKER_REV: "9e4c540d9e4972a36291dfdf81f079f37d748890"
6+
DOCKER_REV: "572353e0644044fe3a5465bba4342a9a0b0eb60e"
97

108
GHC_VERSION: 9.2.3
119
CABAL_INSTALL_VERSION: 3.6.2.0
@@ -28,46 +26,25 @@ workflow:
2826
paths:
2927
- out/*
3028

31-
build-aarch64-linux-deb10:
32-
extends: .build
33-
tags:
34-
- aarch64-linux
35-
image: "registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
36-
variables:
37-
TARBALL_ARCHIVE_SUFFIX: aarch64-linux-deb10
38-
TARBALL_EXT: tar.xz
39-
ADD_CABAL_ARGS: ""
40-
41-
build-armv7-linux-deb10:
42-
extends: .build
43-
tags:
44-
- armv7-linux
45-
image: "registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
46-
variables:
47-
TARBALL_ARCHIVE_SUFFIX: armv7-linux-deb1
48-
TARBALL_EXT: tar.xz
49-
ADD_CABAL_ARGS: ""
50-
# temp, because 3.6.2.0 is broken
51-
CABAL_INSTALL_VERSION: 3.4.0.0
52-
retry: 2
53-
5429
build-x86_64-linux:
5530
extends: .build
31+
parallel:
32+
matrix:
33+
- PLATFORM:
34+
- i386-linux-deb9
35+
- x86_64-linux-centos7
36+
- x86_64-linux-deb9
37+
- x86_64-linux-fedora33
38+
- x86_64-linux-rocky8
39+
- x86_64-linux-ubuntu18_04
40+
- x86_64-linux-ubuntu20_04
41+
- x86_64-linux-deb10
42+
- x86_64-linux-deb11
5643
tags:
5744
- x86_64-linux
58-
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
45+
image: "registry.gitlab.haskell.org/ghc/ci-images/$PLATFORM:$DOCKER_REV"
5946
variables:
60-
TARBALL_ARCHIVE_SUFFIX: x86_64-linux-deb10
61-
TARBALL_EXT: tar.xz
62-
ADD_CABAL_ARGS: "--enable-split-sections"
63-
64-
build-x86_64-linux-deb11:
65-
extends: .build
66-
tags:
67-
- x86_64-linux
68-
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb11:$DOCKER_REV"
69-
variables:
70-
TARBALL_ARCHIVE_SUFFIX: x86_64-linux-deb11
47+
TARBALL_ARCHIVE_SUFFIX: $PLATFORM
7148
TARBALL_EXT: tar.xz
7249
ADD_CABAL_ARGS: "--enable-split-sections"
7350

@@ -84,32 +61,6 @@ build-x86_64-linux-alpine:
8461
TARBALL_EXT: tar.xz
8562
ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"
8663

87-
build-i386-linux-alpine:
88-
extends: .build
89-
tags:
90-
- x86_64-linux
91-
image: "i386/alpine:3.12"
92-
before_script:
93-
# for GHC
94-
- apk add --no-cache bash curl gcc g++ binutils binutils-gold bsd-compat-headers gmp-dev ncurses-dev libffi-dev make xz tar perl
95-
# for cabal build
96-
- apk add --no-cache zlib zlib-dev zlib-static
97-
variables:
98-
TARBALL_ARCHIVE_SUFFIX: i386-linux-alpine
99-
TARBALL_EXT: tar.xz
100-
ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"
101-
# temp, because 3.6.2.0 is broken
102-
CABAL_INSTALL_VERSION: 3.4.0.0
103-
104-
build-x86_64-freebsd12:
105-
extends: .build
106-
tags:
107-
- x86_64-freebsd12
108-
variables:
109-
TARBALL_ARCHIVE_SUFFIX: x86_64-freebsd12
110-
TARBALL_EXT: tar.xz
111-
ADD_CABAL_ARGS: "--enable-split-sections"
112-
11364
build-x86_64-darwin:
11465
extends: .build
11566
tags:

.gitlab/ci.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -Eeuxo pipefail
3+
set -Eeuo pipefail
44

55
source "$CI_PROJECT_DIR/.gitlab/common.sh"
66

@@ -26,7 +26,6 @@ export PATH="$GHCUP_BINDIR:$PATH"
2626
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
2727
export BOOTSTRAP_HASKELL_GHC_VERSION=$GHC_VERSION
2828
export BOOTSTRAP_HASKELL_CABAL_VERSION=$CABAL_INSTALL_VERSION
29-
export BOOTSTRAP_HASKELL_VERBOSE=1
3029
export BOOTSTRAP_HASKELL_ADJUST_CABAL_CONFIG=yes
3130

3231
# for some reason the subshell doesn't pick up the arm64 environment on darwin
@@ -48,7 +47,11 @@ case "$(uname -s)" in
4847
esac
4948

5049
# https://github.com/haskell/cabal/issues/7313#issuecomment-811851884
51-
if [ "$(getconf LONG_BIT)" == "32" ] ; then
50+
# and
51+
# https://github.com/haskellari/lukko/issues/17
52+
#
53+
# $PLATFORM comes from CI.
54+
if [ "$(getconf LONG_BIT)" = "32" -o "${PLATFORM:=xxx}" = "x86_64-linux-centos7" ] ; then
5255
echo 'constraints: lukko -ofd-locking' >> cabal.project.release.local
5356
fi
5457

0 commit comments

Comments
 (0)