Skip to content

Commit c3732b1

Browse files
authored
Merge branch 'master' into branching-deps
2 parents 9b72bf0 + 41de40e commit c3732b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+500
-649
lines changed

.cirrus.yml

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

.github/scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ uname
1111
pwd
1212
env
1313

14+
# setup the locale as HLS contains non-ascii modules and content.
15+
setup_locale
16+
1417
# ensure ghcup
1518
install_ghcup
1619

.github/scripts/common.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ install_ghcup() {
137137
else
138138
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_MINIMAL=1 sh
139139
source "$(dirname "${GHCUP_BIN}")/env"
140+
# make sure we use the vanilla channel for installing binaries
141+
# see https://github.com/haskell/ghcup-metadata/pull/166#issuecomment-1893075575
142+
ghcup config set url-source https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.8.yaml
140143
ghcup install cabal --set "${BOOTSTRAP_HASKELL_CABAL_VERSION}"
141144
fi
142145
}
@@ -204,3 +207,32 @@ mktempdir() {
204207
;;
205208
esac
206209
}
210+
211+
# "Inspired" from GHC GitLab CI
212+
# https://gitlab.haskell.org/ghc/ghc/-/blob/214b2b6916f2d016ab9db0b766060e7828bb47a0/.gitlab/ci.sh#L60
213+
setup_locale() {
214+
# BSD grep terminates early with -q, consequently locale -a will get a
215+
# SIGPIPE and the pipeline will fail with pipefail.
216+
shopt -o -u pipefail
217+
if locale -a | grep -q C.UTF-8; then
218+
# Debian
219+
export LANG=C.UTF-8
220+
elif locale -a | grep -q C.utf8; then
221+
# Fedora calls it this
222+
export LANG=C.utf8
223+
elif locale -a | grep -q en_US.UTF-8; then
224+
# Centos doesn't have C.UTF-8
225+
export LANG=en_US.UTF-8
226+
elif locale -a | grep -q en_US.utf8; then
227+
# Centos doesn't have C.UTF-8
228+
export LANG=en_US.utf8
229+
else
230+
error "Failed to find usable locale"
231+
info "Available locales:"
232+
locale -a
233+
fail "No usable locale, aborting..."
234+
fi
235+
info "Using locale $LANG..."
236+
export LC_ALL=$LANG
237+
shopt -o -s pipefail
238+
}

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
ghc: ["9.8.1", "9.6.4", "9.4.8", "9.2.8"]
33+
ghc: ["9.8.2", "9.6.4", "9.4.8", "9.2.8"]
3434
platform: [ { image: "debian:9"
3535
, installCmd: "sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list && sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list && sed -i /-updates/d /etc/apt/sources.list && apt-get update && apt-get install -y"
3636
, toolRequirements: "libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf"
@@ -145,7 +145,7 @@ jobs:
145145
, ARTIFACT: "x86_64-linux-unknown"
146146
, ADD_CABAL_ARGS: "--enable-split-sections"
147147
}
148-
- ghc: 9.8.1
148+
- ghc: 9.8.2
149149
platform:
150150
{ image: "rockylinux:8"
151151
, installCmd: "yum -y install epel-release && yum install -y --allowerasing"
@@ -213,7 +213,7 @@ jobs:
213213
strategy:
214214
fail-fast: true
215215
matrix:
216-
ghc: ["9.8.1", "9.6.4", "9.4.8", "9.2.8" ]
216+
ghc: ["9.8.2", "9.6.4", "9.4.8", "9.2.8" ]
217217
steps:
218218
- uses: docker://arm64v8/ubuntu:focal
219219
name: Cleanup (aarch64 linux)
@@ -273,7 +273,7 @@ jobs:
273273
strategy:
274274
fail-fast: false
275275
matrix:
276-
ghc: ["9.8.1", "9.6.4", "9.4.8", "9.2.8"]
276+
ghc: ["9.8.2", "9.6.4", "9.4.8", "9.2.8"]
277277
steps:
278278
- name: Checkout code
279279
uses: actions/checkout@v3
@@ -318,7 +318,7 @@ jobs:
318318
strategy:
319319
fail-fast: false
320320
matrix:
321-
ghc: ["9.8.1", "9.6.4", "9.4.8", "9.2.8"]
321+
ghc: ["9.8.2", "9.6.4", "9.4.8", "9.2.8"]
322322
steps:
323323
- name: Checkout code
324324
uses: actions/checkout@v3
@@ -363,7 +363,7 @@ jobs:
363363
strategy:
364364
fail-fast: false
365365
matrix:
366-
ghc: ["9.8.1", "9.6.4", "9.4.8", "9.2.8"]
366+
ghc: ["9.8.2", "9.6.4", "9.4.8", "9.2.8"]
367367
steps:
368368
- name: install windows deps
369369
shell: pwsh

0 commit comments

Comments
 (0)