Skip to content

Commit

Permalink
Allow lens-5.3, QuickCheck-2.15; bump CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed May 25, 2024
1 parent 3afea2a commit d706836
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,22 @@ jobs:
- "9.4"
- "9.6"
- "9.8"
- "9.10"
# TODO: HsOpenSSL fails to build on Windows and macOS without openssl.
# include:
# - { os: macOS-latest, ghc: "9.8" }
# - { os: windows-latest, ghc: "9.8" }

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Haskell
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
cabal-version: latest
cabal-update: true

- name: Configure
run: |
Expand Down Expand Up @@ -95,35 +97,39 @@ jobs:
# GHC version must match https://www.stackage.org/nightly
- stack: "latest"
ghc: "9.8"
resolver: "nightly-2024-05-21"
# Note: this resolver is only a placeholder;
# it is overwritten later by `stack config set resolver nightly`.

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell-actions/setup@v2
name: Setup Haskell Stack
id: setup
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: ${{ matrix.stack }}
cabal-update: false


- name: Configure
run: |
cat <<EOF > stack.yaml
packages:
- '.'
resolver: nightly-2023-07-19
extra-deps:
- 'clientsession-0.9.2.0'
- 'snap-server-1.1.2.1'
resolver: ${{ matrix.resolver }}
EOF
stack config set system-ghc true --global
stack config set resolver nightly
# The last step overwrites the resolver in stack.yaml.

- uses: actions/cache@v4
name: Cache
with:
path: |
~/.stack
key: ${{ runner.os }}-${{ steps.setup.outputs.ghc-version }}-stack
path: ${{ steps.setup.outputs.stack-root }}
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-${{ matrix.resolver }}

- name: Install dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ test/snaplets/heist/templates/good.tpl
test/test-cabal-dev
test/test-snap-exe
.ghc.environment*
/.stack-work/
/stack*.yaml.lock
5 changes: 3 additions & 2 deletions snap.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cabal-version: 2.2
name: snap
version: 1.1.3.3
x-revision: 2
synopsis: Top-level package for the Snap Web Framework
description:
This is the top-level package for the official Snap Framework libraries.
Expand Down Expand Up @@ -159,7 +160,7 @@ Library
-- the version disjunction causes problems with dependency resolution.
hashable >= 1.2.0.6 && < 1.5,
heist >= 1.1 && < 1.2,
lens >= 3.7.6 && < 5.3,
lens >= 3.7.6 && < 5.4,
lifted-base >= 0.2 && < 0.3,
map-syntax >= 0.2 && < 0.4,
monad-control >= 0.3 && < 1.1,
Expand Down Expand Up @@ -267,7 +268,7 @@ Test-suite testsuite
mtl,
mwc-random,
pwstore-fast,
QuickCheck >= 2.4.2 && < 2.15,
QuickCheck >= 2.4.2 && < 2.16,
smallcheck >= 1.1.1 && < 1.3,
snap-core,
snap-server,
Expand Down

0 comments on commit d706836

Please sign in to comment.