Skip to content

Commit

Permalink
Merge pull request #89 from andreasabel/ghc-94
Browse files Browse the repository at this point in the history
Bump template-haskell (GHC 9.4), vector, lens, CI (closes #88)
  • Loading branch information
ddssff authored Sep 23, 2022
2 parents a0879c3 + 8106377 commit f076b8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.14.3
# version: 0.15.20220808
#
# REGENDATA ("0.14.3",["github","safecopy.cabal"])
# REGENDATA ("0.15.20220808",["github","safecopy.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -19,7 +19,7 @@ on:
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
timeout-minutes:
60
container:
Expand All @@ -28,9 +28,14 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.2.2
- compiler: ghc-9.4.1
compilerKind: ghc
compilerVersion: 9.2.2
compilerVersion: 9.4.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.2.4
compilerKind: ghc
compilerVersion: 9.2.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.0.2
Expand Down Expand Up @@ -76,18 +81,18 @@ jobs:
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
if [ "${{ matrix.setup-method }}" = ghcup ]; then
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
else
apt-add-repository -y 'ppa:hvr/ghc'
apt-get update
apt-get install -y "$HCNAME"
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.17.5/x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
fi
env:
HCKIND: ${{ matrix.compilerKind }}
Expand Down Expand Up @@ -230,7 +235,7 @@ jobs:
${CABAL} -vnormal check
- name: haddock
run: |
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
- name: unconstrained build
run: |
rm -f cabal.project.local
Expand Down
9 changes: 5 additions & 4 deletions safecopy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Extra-source-files: CHANGELOG.md
Cabal-version: >=1.10

tested-with:
GHC == 9.2.2
GHC == 9.4.1
GHC == 9.2.4
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
Expand Down Expand Up @@ -48,11 +49,11 @@ Library
generic-data >= 0.3,
containers >= 0.3 && < 0.7,
old-time < 1.2,
template-haskell < 2.19,
template-haskell < 2.20,
text < 1.3 || >= 2.0 && < 2.1,
time < 1.13,
transformers < 0.7,
vector >= 0.10 && < 0.13
vector >= 0.10 && < 0.14

-- Modules not exported by this package.
Other-modules: Data.SafeCopy.Instances, Data.SafeCopy.SafeCopy,
Expand All @@ -72,7 +73,7 @@ Test-suite instances
Hs-Source-Dirs: test/
GHC-Options: -Wall -threaded -rtsopts -with-rtsopts=-N
Build-depends: base, cereal, template-haskell, safecopy,
containers, time, array, vector, lens >= 4.7 && < 5.2,
containers, time, array, vector, lens >= 4.7 && < 5.3,
lens-action, tasty, tasty-quickcheck, quickcheck-instances, QuickCheck

Test-suite generic
Expand Down

0 comments on commit f076b8e

Please sign in to comment.