Skip to content

Commit

Permalink
allow random-1.3, diagrams-1.5, and test on GHC 9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Feb 15, 2025
1 parent d26824a commit 3be6fd7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
42 changes: 26 additions & 16 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.20240708
# version: 0.19.20250115
#
# REGENDATA ("0.19.20240708",["github","diagrams-contrib.cabal"])
# REGENDATA ("0.19.20250115",["github","diagrams-contrib.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -28,6 +28,11 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.12.1
compilerKind: ghc
compilerVersion: 9.12.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.1
compilerKind: ghc
compilerVersion: 9.10.1
Expand All @@ -38,9 +43,9 @@ jobs:
compilerVersion: 9.8.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.6.5
- compiler: ghc-9.6.6
compilerKind: ghc
compilerVersion: 9.6.5
compilerVersion: 9.6.6
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
Expand Down Expand Up @@ -80,15 +85,29 @@ jobs:
allow-failure: false
fail-fast: false
steps:
- name: apt
- name: apt-get install
run: |
apt-get update
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
- name: Install GHCup
run: |
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
- name: Install cabal-install
run: |
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
- name: Install GHC (GHCup)
if: matrix.setup-method == 'ghcup'
run: |
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
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=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
env:
HCKIND: ${{ matrix.compilerKind }}
HCNAME: ${{ matrix.compiler }}
Expand All @@ -99,21 +118,12 @@ jobs:
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
HCDIR=/opt/$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=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
env:
HCKIND: ${{ matrix.compilerKind }}
HCNAME: ${{ matrix.compiler }}
Expand Down Expand Up @@ -229,8 +239,8 @@ jobs:
rm -f cabal.project.local
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
- name: save cache
uses: actions/cache/save@v4
if: always()
uses: actions/cache/save@v4
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
10 changes: 5 additions & 5 deletions diagrams-contrib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build-type: Simple
cabal-version: 1.18
extra-source-files: README.markdown, diagrams/*.svg, CONTRIBUTORS
extra-doc-files: diagrams/*.svg, CHANGES.markdown
tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1
tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1 || ==9.12.1
Source-repository head
type: git
location: http://github.com/diagrams/diagrams-contrib.git
Expand Down Expand Up @@ -51,7 +51,7 @@ library
Diagrams.TwoD.Path.Metafont.Internal
Diagrams.TwoD.Path.Metafont.Combinators
Diagrams.TwoD.Path.Metafont.Parser
build-depends: base >= 4.8 && < 4.21,
build-depends: base >= 4.8 && < 4.22,
mtl >= 2.0 && < 2.4,
mtl-compat >= 0.2.1 && < 0.3,
containers > 0.4 && < 0.8,
Expand All @@ -60,14 +60,14 @@ library
split >= 0.2.1 && < 0.3,
monoid-extras >= 0.4.2 && < 0.7,
diagrams-core >= 1.4 && < 1.6,
diagrams-lib >= 1.4 && < 1.5,
diagrams-lib >= 1.4 && < 1.6,
diagrams-solve >= 0.1 && < 0.2,
lens >= 4.0 && < 5.4,
linear >= 1.11.3 && < 1.24,
force-layout >= 0.4 && < 0.5,
data-default >= 0.8 && < 0.9,
MonadRandom >= 0.1.8 && < 0.7,
random >= 1.0 && < 1.3,
random >= 1.0 && < 1.4,
circle-packing >= 0.1 && < 0.2,
parsec >= 3.1 && < 3.2,
text >= 0.11 && < 2.2,
Expand Down Expand Up @@ -95,6 +95,6 @@ test-suite turtle-tests
test-framework-quickcheck2 >= 0.2 && < 0.4,

base >= 4.8 && < 5,
diagrams-lib >= 1.4 && < 1.5
diagrams-lib >= 1.4 && < 1.6

default-language: Haskell2010

0 comments on commit 3be6fd7

Please sign in to comment.