Skip to content

Commit 7c9d723

Browse files
Use new .github workflows.
1 parent da678ce commit 7c9d723

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
jobs:
88
call-workflow:
9-
uses: byteverse/.github/.github/workflows/build.yaml@main
10-
secrets: inherit
9+
uses: byteverse/.github/.github/workflows/build-matrix.yaml@main
1110
with:
12-
release: false
11+
cabal-file: array-builder.cabal

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ on:
66

77
jobs:
88
call-workflow:
9-
uses: byteverse/.github/.github/workflows/build.yaml@main
9+
uses: byteverse/.github/.github/workflows/release.yaml@main
1010
secrets: inherit
11-
with:
12-
release: true

array-builder.cabal

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ maintainer: amartin@layer3com.com
1212
copyright: 2019 Andrew Martin
1313
category: Data
1414
extra-doc-files: CHANGELOG.md
15+
tested-with: GHC ==9.4.8 || ==9.6.3 || ==9.8.1
16+
17+
common build-settings
18+
default-language: Haskell2010
19+
ghc-options: -Wall -Wunused-packages
1520

1621
library
22+
import: build-settings
1723
exposed-modules:
1824
Data.Builder
1925
Data.Builder.Catenable
2026
Data.Builder.Catenable.Bytes
2127
Data.Builder.Catenable.Text
2228
Data.Builder.ST
2329

24-
other-modules: Compat
30+
other-modules: Compat
2531
build-depends:
2632
, array-chunks >=0.1 && <0.2
2733
, base >=4.12 && <5
@@ -30,33 +36,29 @@ library
3036
, bytestring >=0.11.5 && <0.12
3137
, natural-arithmetic >=0.1.3 && <0.3
3238
, primitive >=0.6.4 && <0.10
33-
, run-st >=0.1 && <0.2
3439
, text-short >=0.1.3 && <0.2
3540

36-
hs-source-dirs: src
41+
hs-source-dirs: src
3742

3843
if impl(ghc >=8.9)
3944
hs-source-dirs: src-post-8.9
4045

4146
else
4247
hs-source-dirs: src-pre-8.9
4348

44-
default-language: Haskell2010
45-
ghc-options: -Wall -O2
49+
ghc-options: -O2
4650

4751
test-suite test
48-
type: exitcode-stdio-1.0
49-
hs-source-dirs: test
50-
main-is: Main.hs
52+
import: build-settings
53+
type: exitcode-stdio-1.0
54+
hs-source-dirs: test
55+
main-is: Main.hs
5156
build-depends:
5257
, array-builder
5358
, base
5459
, tasty
5560
, tasty-hunit
5661

57-
ghc-options: -Wall -O2
58-
default-language: Haskell2010
59-
6062
source-repository head
6163
type: git
6264
location: git://github.com/byteverse/array-builder.git

0 commit comments

Comments
 (0)