Skip to content

Commit 334375c

Browse files
authored
Merge pull request #38 from biocad/maksbotan/doctest-0.21
Update doctest constraint, update haskell-ci
2 parents 25d2a22 + 7677242 commit 334375c

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.14.3
11+
# version: 0.15.20230128
1212
#
13-
# REGENDATA ("0.14.3",["github","cabal.project","--config","cabal.haskell-ci"])
13+
# REGENDATA ("0.15.20230128",["github","cabal.project","--config","cabal.haskell-ci"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
linux:
2525
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-18.04
26+
runs-on: ubuntu-20.04
2727
timeout-minutes:
2828
60
2929
container:
@@ -32,15 +32,14 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
# Added manually - no 9.4 in haskell-ci yet
36-
- compiler: ghc-9.4.3
35+
- compiler: ghc-9.4.4
3736
compilerKind: ghc
38-
compilerVersion: 9.4.3
37+
compilerVersion: 9.4.4
3938
setup-method: ghcup
40-
allow-failure: true
41-
- compiler: ghc-9.2.2
39+
allow-failure: false
40+
- compiler: ghc-9.2.5
4241
compilerKind: ghc
43-
compilerVersion: 9.2.2
42+
compilerVersion: 9.2.5
4443
setup-method: ghcup
4544
allow-failure: false
4645
- compiler: ghc-9.0.2
@@ -71,18 +70,20 @@ jobs:
7170
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
7271
if [ "${{ matrix.setup-method }}" = ghcup ]; then
7372
mkdir -p "$HOME/.ghcup/bin"
74-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
73+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
7574
chmod a+x "$HOME/.ghcup/bin/ghcup"
76-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
77-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
75+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
76+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
77+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
7878
else
7979
apt-add-repository -y 'ppa:hvr/ghc'
8080
apt-get update
8181
apt-get install -y "$HCNAME"
8282
mkdir -p "$HOME/.ghcup/bin"
83-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
83+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
8484
chmod a+x "$HOME/.ghcup/bin/ghcup"
85-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
85+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
86+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
8687
fi
8788
env:
8889
HCKIND: ${{ matrix.compilerKind }}
@@ -165,7 +166,7 @@ jobs:
165166
chmod a+x $HOME/.cabal/bin/cabal-plan
166167
cabal-plan --version
167168
- name: checkout
168-
uses: actions/checkout@v2
169+
uses: actions/checkout@v3
169170
with:
170171
path: source
171172
- name: initial cabal.project for sdist
@@ -206,8 +207,8 @@ jobs:
206207
run: |
207208
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
208209
cabal-plan
209-
- name: cache
210-
uses: actions/cache@v2
210+
- name: restore cache
211+
uses: actions/cache/restore@v3
211212
with:
212213
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
213214
path: ~/.cabal/store
@@ -261,3 +262,9 @@ jobs:
261262
run: |
262263
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' --dependencies-only -j2 all ; fi
263264
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
265+
- name: save cache
266+
uses: actions/cache/save@v3
267+
if: always()
268+
with:
269+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
270+
path: ~/.cabal/store

example/example.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ tested-with:
1818
|| ==8.8.4
1919
|| ==8.10.7
2020
|| ==9.0.2
21-
|| ==9.2.2
22-
|| ==9.4.3
21+
|| ==9.2.5
22+
|| ==9.4.4
2323

2424
library
2525
ghc-options: -Wall

servant-openapi3.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ tested-with:
3333
|| ==8.8.4
3434
|| ==8.10.7
3535
|| ==9.0.2
36-
|| ==9.2.2
37-
|| ==9.4.3
36+
|| ==9.2.5
37+
|| ==9.4.4
3838

3939
extra-source-files:
4040
README.md
@@ -98,7 +98,7 @@ test-suite doctests
9898
build-depends:
9999
base,
100100
directory >= 1.0,
101-
doctest >= 0.11.1 && <0.21,
101+
doctest >= 0.11.1 && <0.22,
102102
servant,
103103
QuickCheck,
104104
filepath

0 commit comments

Comments
 (0)