Skip to content

Commit 16fb2b8

Browse files
committed
regex-posix 0.96.0.1-r1: allow base >= 4.17, extend CI to GHC 9.4 alpha
1 parent 89680cc commit 16fb2b8

File tree

4 files changed

+59
-28
lines changed

4 files changed

+59
-28
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,22 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.14
11+
# version: 0.15.20220525
1212
#
13-
# REGENDATA ("0.14",["github","regex-posix.cabal"])
13+
# REGENDATA ("0.15.20220525",["github","regex-posix.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
17-
- push
18-
- pull_request
17+
push:
18+
branches:
19+
- master
20+
pull_request:
21+
branches:
22+
- master
1923
jobs:
2024
linux:
2125
name: Haskell-CI - Linux - ${{ matrix.compiler }}
22-
runs-on: ubuntu-18.04
26+
runs-on: ubuntu-20.04
2327
timeout-minutes:
2428
60
2529
container:
@@ -28,9 +32,14 @@ jobs:
2832
strategy:
2933
matrix:
3034
include:
31-
- compiler: ghc-9.2.1
35+
- compiler: ghc-9.4.0.20220501
3236
compilerKind: ghc
33-
compilerVersion: 9.2.1
37+
compilerVersion: 9.4.0.20220501
38+
setup-method: ghcup
39+
allow-failure: true
40+
- compiler: ghc-9.2.2
41+
compilerKind: ghc
42+
compilerVersion: 9.2.2
3443
setup-method: ghcup
3544
allow-failure: false
3645
- compiler: ghc-9.0.2
@@ -106,16 +115,17 @@ jobs:
106115
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
107116
if [ "${{ matrix.setup-method }}" = ghcup ]; then
108117
mkdir -p "$HOME/.ghcup/bin"
109-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
118+
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
110119
chmod a+x "$HOME/.ghcup/bin/ghcup"
120+
if $HEADHACKAGE; then "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml; fi
111121
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
112122
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
113123
else
114124
apt-add-repository -y 'ppa:hvr/ghc'
115125
apt-get update
116126
apt-get install -y "$HCNAME"
117127
mkdir -p "$HOME/.ghcup/bin"
118-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
128+
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
119129
chmod a+x "$HOME/.ghcup/bin/ghcup"
120130
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
121131
fi
@@ -148,7 +158,7 @@ jobs:
148158
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
149159
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
150160
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
151-
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
161+
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
152162
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
153163
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
154164
env:
@@ -177,6 +187,17 @@ jobs:
177187
repository hackage.haskell.org
178188
url: http://hackage.haskell.org/
179189
EOF
190+
if $HEADHACKAGE; then
191+
cat >> $CABAL_CONFIG <<EOF
192+
repository head.hackage.ghc.haskell.org
193+
url: https://ghc.gitlab.haskell.org/head.hackage/
194+
secure: True
195+
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
196+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
197+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
198+
key-threshold: 3
199+
EOF
200+
fi
180201
cat >> $CABAL_CONFIG <<EOF
181202
program-default-options
182203
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -228,6 +249,9 @@ jobs:
228249
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
229250
cat >> cabal.project <<EOF
230251
EOF
252+
if $HEADHACKAGE; then
253+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
254+
fi
231255
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(regex-posix)$/; }' >> cabal.project.local
232256
cat cabal.project
233257
cat cabal.project.local
@@ -257,7 +281,7 @@ jobs:
257281
${CABAL} -vnormal check
258282
- name: haddock
259283
run: |
260-
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
284+
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
261285
- name: unconstrained build
262286
run: |
263287
rm -f cabal.project.local

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
For versioning policy, see: http://pvp.haskell.org/faq
22

3+
## 0.96.0.1 Revision 1 (2022-05-25)
4+
5+
- Allow `base >= 4.17` (GHC 9.4)
6+
37
## 0.96.0.1 (2021-07-19)
48

59
- Compatibility with `base-4.16` (GHC 9.2)

cabal.haskell-ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
branches: master

regex-posix.cabal

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
cabal-version: 1.12
22
name: regex-posix
33
version: 0.96.0.1
4+
x-revision: 1
45

56
build-type: Simple
67
license: BSD3
78
license-file: LICENSE
89
copyright: Copyright (c) 2007-2010, Christopher Kuklewicz
910
author: Christopher Kuklewicz
10-
maintainer: hvr@gnu.org, Andreas Abel
11-
bug-reports: https://github.com/hvr/regex-posix
11+
maintainer: Andreas Abel
12+
bug-reports: https://github.com/haskell-hvr/regex-posix
1213
synopsis: POSIX Backend for "Text.Regex" (regex-base)
1314
category: Text
1415
description:
@@ -23,20 +24,21 @@ extra-source-files:
2324
cbits/myfree.h
2425

2526
tested-with:
26-
GHC == 7.0.4
27-
GHC == 7.2.2
28-
GHC == 7.4.2
29-
GHC == 7.6.3
30-
GHC == 7.8.4
31-
GHC == 7.10.3
32-
GHC == 8.0.2
33-
GHC == 8.2.2
34-
GHC == 8.4.4
35-
GHC == 8.6.5
36-
GHC == 8.8.4
37-
GHC == 8.10.7
27+
GHC == 9.4.1
28+
GHC == 9.2.2
3829
GHC == 9.0.2
39-
GHC == 9.2.1
30+
GHC == 8.10.7
31+
GHC == 8.8.4
32+
GHC == 8.6.5
33+
GHC == 8.4.4
34+
GHC == 8.2.2
35+
GHC == 8.0.2
36+
GHC == 7.10.3
37+
GHC == 7.8.4
38+
GHC == 7.6.3
39+
GHC == 7.4.2
40+
GHC == 7.2.2
41+
GHC == 7.0.4
4042

4143
source-repository head
4244
type: git
@@ -45,7 +47,7 @@ source-repository head
4547
source-repository this
4648
type: git
4749
location: https://github.com/hvr/regex-base.git
48-
tag: v0.96.0.1
50+
tag: v0.96.0.1-r1
4951

5052
flag _regex-posix-clib
5153
manual: False
@@ -85,7 +87,7 @@ library
8587
FlexibleInstances
8688

8789
build-depends: regex-base == 0.94.*
88-
, base >= 4.3 && < 4.17
90+
, base >= 4.3 && < 5
8991
, containers >= 0.4 && < 0.7
9092
, bytestring >= 0.9 && < 0.12
9193
, array >= 0.3 && < 0.6

0 commit comments

Comments
 (0)