Skip to content

Commit 1bba75c

Browse files
committed
Add CI workflow that ensures released pkg builds with latest GHC
1 parent 4b443ac commit 1bba75c

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ jobs:
9595
cabal_project: cabal.project.ghc-head
9696
disable_sdist_build: "y"
9797
ignore_error: true
98+
# This CI makes sure that the packages on hackage are compatible with
99+
# the latest GHC release.
100+
- name: 9.12.1-hackage-sdist
101+
ghc_version: 9.12.1
102+
runner: ubuntu-latest
103+
build: cabal
104+
cabal_build_options: "--flag limit-build-mem"
105+
cabal_version: 3.12.1.0
106+
ignore_error: false
107+
subdir: dummy-package
98108
- name: 9.12.1
99109
ghc_version: 9.12.1
100110
runner: ubuntu-latest

.packcheck.ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ targets/default.nix
3535
targets/cabal.project
3636
test/test-runner/default.nix
3737
test/test-runner/cabal.project
38+
dummy-package/dummy-package.cabal
39+
dummy-package/MyLib.hs

dummy-package/MyLib.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module MyLib (someFunc) where
2+
3+
someFunc :: IO ()
4+
someFunc = putStrLn "someFunc"

dummy-package/dummy-package.cabal

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cabal-version: 3.0
2+
name: dummy-package
3+
version: 0.1.0.0
4+
license: BSD-3-Clause
5+
build-type: Simple
6+
7+
common warnings
8+
ghc-options: -Wall
9+
10+
library
11+
import: warnings
12+
exposed-modules: MyLib
13+
build-depends: base
14+
, streamly
15+
, streamly-core
16+
hs-source-dirs: .
17+
default-language: Haskell2010

0 commit comments

Comments
 (0)