Skip to content

Commit 693837a

Browse files
authored
Merge pull request #13 from haskell-hvr/ghc-9.4
Ghc 9.4
2 parents ab024c0 + 368258a commit 693837a

File tree

4 files changed

+77
-23
lines changed

4 files changed

+77
-23
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 22 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.13.20211111
11+
# version: 0.15.20220808
1212
#
13-
# REGENDATA ("0.13.20211111",["github","cabal.project"])
13+
# REGENDATA ("0.15.20220808",["github","cabal.project"])
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,20 +32,25 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.2.1
35+
- compiler: ghc-9.4.1
3636
compilerKind: ghc
37-
compilerVersion: 9.2.1
37+
compilerVersion: 9.4.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.0.1
40+
- compiler: ghc-9.2.4
4141
compilerKind: ghc
42-
compilerVersion: 9.0.1
43-
setup-method: hvr-ppa
42+
compilerVersion: 9.2.4
43+
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-8.10.4
45+
- compiler: ghc-9.0.2
4646
compilerKind: ghc
47-
compilerVersion: 8.10.4
48-
setup-method: hvr-ppa
47+
compilerVersion: 9.0.2
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-8.10.7
51+
compilerKind: ghc
52+
compilerVersion: 8.10.7
53+
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-8.8.4
5156
compilerKind: ghc
@@ -100,18 +105,18 @@ jobs:
100105
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
101106
if [ "${{ matrix.setup-method }}" = ghcup ]; then
102107
mkdir -p "$HOME/.ghcup/bin"
103-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
108+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
104109
chmod a+x "$HOME/.ghcup/bin/ghcup"
105-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
106-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
110+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107112
else
108113
apt-add-repository -y 'ppa:hvr/ghc'
109114
apt-get update
110115
apt-get install -y "$HCNAME"
111116
mkdir -p "$HOME/.ghcup/bin"
112-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
117+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
113118
chmod a+x "$HOME/.ghcup/bin/ghcup"
114-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
119+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115120
fi
116121
env:
117122
HCKIND: ${{ matrix.compilerKind }}
@@ -254,7 +259,7 @@ jobs:
254259
${CABAL} -vnormal check
255260
- name: haddock
256261
run: |
257-
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
262+
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
258263
- name: unconstrained build
259264
run: |
260265
rm -f cabal.project.local

.github/workflows/simple.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Simple
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
native:
12+
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [macos-latest, windows-latest]
17+
ghc: ['8.10','9.0','9.2','9.4.1']
18+
fail-fast: false
19+
timeout-minutes:
20+
60
21+
steps:
22+
- name: Set git to use LF
23+
run: |
24+
git config --global core.autocrlf false
25+
git config --global core.eol lf
26+
27+
- name: Checkout
28+
uses: actions/checkout@v3.0.2
29+
30+
- name: Set up Haskell
31+
id: setup-haskell
32+
uses: haskell/actions/setup@v1
33+
with:
34+
ghc-version: ${{ matrix.ghc }}
35+
cabal-version: '3.8.1.0'
36+
37+
- name: Cache
38+
uses: actions/cache@v2.1.3
39+
with:
40+
path: ${{ steps.setup-haskell.outputs.cabal-store }}
41+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
42+
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
43+
44+
- name: Build
45+
run: cabal build all --enable-tests
46+
47+
- name: Test
48+
run: cabal test all --enable-tests --test-show-details=direct

cabal.haskell-ci

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
branches: master
2-
ghcup-jobs: >=9.2
32
benchmarks: >=7.6
43
tests: >=7.6
54

cryptohash-sha512.cabal

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: cryptohash-sha512
22
version: 0.11.101.0
3+
x-revision: 1
34
description:
45
A practical incremental and one-pass, pure API to the
56
<https://en.wikipedia.org/wiki/SHA-2 SHA-512 hash algorithm>
@@ -35,9 +36,10 @@ tested-with: GHC == 7.4.2
3536
, GHC == 8.4.4
3637
, GHC == 8.6.5
3738
, GHC == 8.8.4
38-
, GHC == 8.10.4
39-
, GHC == 9.0.1
40-
, GHC == 9.2.1
39+
, GHC == 8.10.7
40+
, GHC == 9.0.2
41+
, GHC == 9.2.4
42+
, GHC == 9.4.1
4143

4244
extra-source-files: cbits/sha512.h
4345
changelog.md
@@ -48,7 +50,7 @@ source-repository head
4850

4951
library
5052
default-language: Haskell2010
51-
build-depends: base >= 4.5 && < 4.17
53+
build-depends: base >= 4.5 && < 4.18
5254
, bytestring >= 0.9.2 && < 0.12
5355

5456
hs-source-dirs: src
@@ -82,4 +84,4 @@ benchmark bench-sha512
8284
build-depends: cryptohash-sha512
8385
, base
8486
, bytestring
85-
, criterion >= 1.5 && <1.6
87+
, criterion >= 1.5 && <1.7

0 commit comments

Comments
 (0)