Skip to content

Commit

Permalink
Add support for GHC 9.12, drop support for GHC 9.6 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak authored Feb 1, 2025
1 parent bfbfde0 commit 247716d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: mkdir artifact
- id: haskell
uses: haskell-actions/setup@v2
- uses: haskell/ghcup-setup@v1
with:
ghc-version: ${{ matrix.ghc }}
ghc: ${{ matrix.ghc }}
cabal: latest
- run: ghc-pkg list
- run: cabal sdist --output-dir artifact
- run: cabal configure --enable-tests --flags=pedantic --jobs
- run: cat cabal.project.local
- run: cp cabal.project.local artifact
- run: cabal update
- run: cabal freeze
- run: cat cabal.project.freeze
- run: cp cabal.project.freeze artifact
- run: cabal outdated --v2-freeze-file
- uses: actions/cache@v4
with:
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
path: ${{ steps.haskell.outputs.cabal-store }}
path: ~/.local/state/cabal
restore-keys: ${{ matrix.os }}-${{ matrix.ghc }}-
- run: cabal build --only-download
- run: cabal build --only-dependencies
Expand All @@ -35,17 +36,17 @@ jobs:
strategy:
matrix:
include:
- ghc: '9.10'
- ghc: 9.12
os: macos-13
- ghc: '9.10'
- ghc: 9.12
os: macos-14
- ghc: 9.6
os: ubuntu-22.04
- ghc: 9.8
os: ubuntu-22.04
- ghc: '9.10'
os: ubuntu-22.04
os: ubuntu-24.04
- ghc: '9.10'
os: ubuntu-24.04
- ghc: 9.12
os: ubuntu-24.04
- ghc: 9.12
os: windows-2022
cabal:
name: Cabal
Expand Down Expand Up @@ -85,7 +86,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: rampart-${{ github.sha }}-ubuntu-22.04-9.10
name: rampart-${{ github.sha }}-ubuntu-24.04-9.12
- run: tar --extract --file artifact.tar --verbose
- uses: softprops/action-gh-release@v2
with:
Expand Down
6 changes: 2 additions & 4 deletions rampart.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ flag pedantic
manual: True

common library
build-depends: base ^>=4.18.0.0 || ^>=4.19.0.0 || ^>=4.20.0.0
build-depends: base ^>=4.19.0.0 || ^>=4.20.0.0 || ^>=4.21.0.0
default-language: Haskell2010
ghc-options:
-Weverything
Expand All @@ -32,6 +32,7 @@ common library
-Wno-missing-deriving-strategies
-Wno-missing-exported-signatures
-Wno-missing-kind-signatures
-Wno-missing-role-annotations
-Wno-missing-safe-haskell-mode
-Wno-prepositive-qualified-module
-Wno-safe
Expand All @@ -40,9 +41,6 @@ common library
if flag(pedantic)
ghc-options: -Werror

if impl(ghc >=9.8)
ghc-options: -Wno-missing-role-annotations

common executable
import: library
build-depends: rampart
Expand Down

0 comments on commit 247716d

Please sign in to comment.