Skip to content

Commit f62ec3e

Browse files
jneiramergify[bot]
andauthored
Add ghc 9.2.1 to gitlab ci (#2636)
* Remove unused nix config * Add ghc-9.2.1 to gitlab build * Remove not needed alpine workaround * Use -j1 to fix oom in bsd-12 * Use -j1 to try fix oom in bsd-13 * exclude 9.2.1 for freebsd Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 167e556 commit f62ec3e

File tree

3 files changed

+18
-101
lines changed

3 files changed

+18
-101
lines changed

.gitlab-ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ variables:
1111
CABAL_INSTALL_VERSION: 3.6.2.0
1212

1313
.default_matrix: &default_matrix
14+
matrix:
15+
- GHC_VERSION: 8.8.4
16+
CABAL_PROJECT: cabal.project
17+
- GHC_VERSION: 8.10.7
18+
CABAL_PROJECT: cabal.project
19+
- GHC_VERSION: 9.0.2
20+
CABAL_PROJECT: cabal-ghc90.project
21+
- GHC_VERSION: 9.2.1
22+
CABAL_PROJECT: cabal-ghc921.project
23+
24+
# ghc-9.2.1 is broken for bsd
25+
.freebsd_matrix: &freebsd_matrix
1426
matrix:
1527
- GHC_VERSION: 8.8.4
1628
CABAL_PROJECT: cabal.project
@@ -148,9 +160,9 @@ build-x86_64-freebsd12:
148160
extends: .build
149161
tags:
150162
- x86_64-freebsd12
151-
parallel: *default_matrix
163+
parallel: *freebsd_matrix
152164
variables:
153-
ADD_CABAL_ARGS: "--enable-split-sections"
165+
ADD_CABAL_ARGS: "--enable-split-sections -j1"
154166

155167
tar-x86_64-freebsd12:
156168
extends: .artifacts
@@ -168,13 +180,13 @@ build-x86_64-freebsd13:
168180
extends: .build
169181
tags:
170182
- x86_64-freebsd13
171-
parallel: *default_matrix
183+
parallel: *freebsd_matrix
172184
before_script:
173185
- sudo pkg update
174186
- sudo pkg install --yes compat12x-amd64
175187
- sudo ln -s libncurses.so.6 /usr/local/lib/libncurses.so.6.2
176188
variables:
177-
ADD_CABAL_ARGS: "--enable-split-sections"
189+
ADD_CABAL_ARGS: "--enable-split-sections -j1"
178190

179191
tar-x86_64-freebsd13:
180192
extends: .artifacts

.gitlab/ci.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ case "$(uname -s)" in
4545
;;
4646
esac
4747

48-
# some alpines need workaround
49-
if ghc --info | grep -q integer-simple ; then
50-
echo -e 'package blaze-textual\n flags: +integer-simple' >> cabal.project.local
51-
fi
52-
5348
# Shorten binary names
5449
sed -i.bak -e 's/haskell-language-server/hls/g' \
5550
-e 's/haskell_language_server/hls/g' \
@@ -58,9 +53,9 @@ sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
5853
src/**/*.hs exe/*.hs
5954

6055
args=(
61-
-O2
56+
-O2
6257
-w "ghc-$GHC_VERSION"
63-
--project-file "$CABAL_PROJECT"
58+
--project-file "$CABAL_PROJECT"
6459
--disable-profiling
6560
--disable-tests
6661
--enable-executable-stripping

.gitlab/shell-aarch64-darwin.nix

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)