Skip to content

Commit

Permalink
Merge pull request #33 from bellroy/dependency-update-25-06-2024
Browse files Browse the repository at this point in the history
Dependency update 25 06 2024
  • Loading branch information
JackKelly-Bellroy authored Jun 28, 2024
2 parents 3778fcd + 596ac0f commit 8c6f906
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 62 deletions.
33 changes: 20 additions & 13 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.16.3
# version: 0.18.1
#
# REGENDATA ("0.16.3",["github","wai-handler-hal.cabal"])
# REGENDATA ("0.18.1",["github","wai-handler-hal.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -28,9 +28,14 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.6.2
- compiler: ghc-9.8.2
compilerKind: ghc
compilerVersion: 9.6.2
compilerVersion: 9.8.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.6.4
compilerKind: ghc
compilerVersion: 9.6.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.5
Expand Down Expand Up @@ -71,18 +76,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.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.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.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
fi
env:
HCKIND: ${{ matrix.compilerKind }}
Expand All @@ -96,17 +101,19 @@ jobs:
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
HCDIR=/opt/$HCKIND/$HCVER
if [ "${{ matrix.setup-method }}" = ghcup ]; then
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
else
HC=$HCDIR/bin/$HCKIND
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
fi
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
Expand Down
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 8 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@

outputs = inputs:
inputs.bellroy-nix-foss.lib.haskellProject {
cabalPackages = [
{
name = "wai-handler-hal";
path = ./wai-handler-hal.nix;
}
supportedCompilers = [
"ghc8107"
"ghc92"
"ghc94"
"ghc96"
"ghc98"
"ghc910"
];
supportedCompilers = [ "ghc8107" "ghc92" "ghc94" ];
defaultCompiler = "ghc92";
haskellPackagesOverride = { compilerName, haskellLib, final, prev }:
if compilerName == "ghc94"
then {
# hal doesn't support newer hedgehog
hedgehog = haskellLib.compose.dontCheck (prev.callHackage "hedgehog" "1.1.2" { });
}
else { };
defaultCompiler = "ghc96";
};
}
12 changes: 6 additions & 6 deletions wai-handler-hal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ maintainer: Bellroy Tech Team <[email protected]>
copyright: Copyright (C) 2021, 2024 Bellroy Pty Ltd
category: AWS, Cloud
build-type: Simple
extra-doc-files:
CHANGELOG.md
extra-doc-files: CHANGELOG.md
extra-source-files:
README.md
test/data/ProxyRequest.json
Expand All @@ -35,7 +34,8 @@ tested-with:
|| ==9.0.2
|| ==9.2.4
|| ==9.4.5
|| ==9.6.2
|| ==9.6.4
|| ==9.8.2

common opts
default-language: Haskell2010
Expand All @@ -48,15 +48,15 @@ common opts

common deps
build-depends:
, base >=4.12 && <4.19
, base >=4.12 && <4.21
, base64-bytestring >=1.0.0.0 && <1.3
, bytestring >=0.10.8 && <0.13
, case-insensitive ^>=1.2.0.0
, hal >=0.4.7 && <0.4.11 || >=1.0.0 && <1.2
, http-media ^>=0.8.1.1
, http-types ^>=0.12.3
, network >=2.8.0.0 && <3.2
, text ^>=1.2.3 || >=2.0 && <2.2
, network >=2.8.0.0 && <3.3
, text ^>=1.2.3 || ^>=2.0 || ^>=2.1
, unordered-containers ^>=0.2.10.0
, vault ^>=0.3.1.0
, wai ^>=3.2.2
Expand Down
17 changes: 0 additions & 17 deletions wai-handler-hal.nix

This file was deleted.

0 comments on commit 8c6f906

Please sign in to comment.