Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 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.19.20250605
# version: 0.19.20260104
#
# REGENDATA ("0.19.20250605",["github","cabal.project"])
# REGENDATA ("0.19.20260104",["github","cabal.project"])
#
name: Haskell-CI
on:
Expand All @@ -20,6 +20,9 @@ on:
pull_request:
branches:
- master
merge_group:
branches:
- master
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
Expand All @@ -32,14 +35,19 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.14.1
compilerKind: ghc
compilerVersion: 9.14.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.12.2
compilerKind: ghc
compilerVersion: 9.12.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.2
- compiler: ghc-9.10.3
compilerKind: ghc
compilerVersion: 9.10.2
compilerVersion: 9.10.3
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.8.4
Expand Down Expand Up @@ -110,8 +118,8 @@ jobs:
chmod a+x "$HOME/.ghcup/bin/ghcup"
- name: Install cabal-install
run: |
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
"$HOME/.ghcup/bin/ghcup" install cabal 3.16.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.16.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
- name: Install GHC (GHCup)
if: matrix.setup-method == 'ghcup'
run: |
Expand Down Expand Up @@ -202,7 +210,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-72b17435
path: ~/.haskell-ci-tools
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
path: source
- name: initial cabal.project for sdist
Expand All @@ -227,7 +235,12 @@ jobs:
touch cabal.project.local
echo "packages: ${PKGDIR_base64_bytestring_type}" >> cabal.project
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package base64-bytestring-type" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project ; fi
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package base64-bytestring-type" >> cabal.project ; fi
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package base64-bytestring-type" >> cabal.project ; fi
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
if [ $((HCNUMVER >= 91400)) -ne 0 ] ; then echo "allow-newer: *:*" >> cabal.project ; fi
cat >> cabal.project <<EOF
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(base64-bytestring-type)$/; }' >> cabal.project.local
Expand Down
7 changes: 4 additions & 3 deletions base64-bytestring-type.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ tested-with:
|| ==9.4.8
|| ==9.6.7
|| ==9.8.4
|| ==9.10.2
|| ==9.10.3
|| ==9.12.2
|| ==9.14.1

extra-source-files:
README.md
Expand Down Expand Up @@ -73,7 +74,7 @@ library
-- other dependencies:
build-depends:
aeson >=1.2.3.0 && <1.6 || >=2.0 && <2.3
, base-compat >=0.9.3 && <0.15
, base-compat >=0.9.3 && <0.16
, base64-bytestring >=1.0.0.1 && <1.3
, hashable >=1.2.6.1 && <1.6
, QuickCheck >=2.11.3 && <2.17
Expand All @@ -88,7 +89,7 @@ library
build-depends: serialise >=0.2.1.0 && <0.3

if flag(http-api-data)
build-depends: http-api-data >=0.4 && <0.7
build-depends: http-api-data >=0.4 && <0.8

exposed-modules:
Data.ByteString.Base64.Lazy.Type
Expand Down
29 changes: 3 additions & 26 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
packages: .

-- cabal-allow-newer
if impl (ghc >= 9.14)
allow-newer:
, aeson:containers
, aeson:template-haskell
, assoc:base
, bifunctors:template-haskell
, cborg:base
, cborg:containers
, data-fix:base
, generically:base
, hashable:base
, hashable:containers
, hashable:ghc-bignum
, http-api-data:base
, http-api-data:containers
, http-api-data:time-compat
, http-api-data:uuid-types
, indexed-traversable:base
, indexed-traversable:containers
, indexed-traversable-instances:base
, integer-conversion:base
, integer-logarithms:base
, integer-logarithms:ghc-bignum
, OneTuple:base
, primitive:base
, scientific:base
, scientific:containers
, scientific:template-haskell
, semialign:base
, semialign:containers
, serialise:base
, serialise:containers
, splitmix:base
, tagged:template-haskell
, text:base
, text-short:base
, text-short:template-haskell
, th-abstraction:template-haskell
, th-compat:template-haskell
, these:base
, time-compat:base
, unordered-containers:template-haskell
, uuid-types:template-haskell
, vector:base
, vector-stream:base
, witherable:containers
Loading