Skip to content

Commit e4c4422

Browse files
committed
cleanup: add version bounds on depdendencies
1 parent 996ef9e commit e4c4422

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Release"
2+
on:
3+
release:
4+
types: [created]
5+
workflow_dispatch:
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Setup Haskell env
13+
uses: haskell/actions/setup@v2
14+
with:
15+
enable-stack: false
16+
- run: make publish
17+
- uses: haskell-actions/hackage-publish@v1
18+
with:
19+
hackageToken: "${{ secrets.HACKAGE_AUTH_TOKEN }}"
20+
packagesPath: dist-newstyle/sdist
21+
docsPath: dist-newstyle
22+
publish: true

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ build:
77
cp `find dist-newstyle/build/wasm32-wasi/ -name $*.wasm` ./$*.wasm
88

99
clean:
10-
cabal clean
10+
cabal clean
11+
12+
publish: clean
13+
cabal v2-haddock --haddock-for-hackage
14+
cabal sdist
15+

cabal.project

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
source-repository-package
2-
type: git
3-
location: https://github.com/extism/extism.git
4-
subdir: haskell/manifest
5-
61
packages:
72
./extism-pdk.cabal
83

extism-pdk.cabal

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ author: Extism Authors
1717
maintainer: [email protected]
1818

1919
category: WASM, plugins
20-
extra-source-files: CHANGELOG.md
20+
extra-doc-files: CHANGELOG.md
2121

2222
library
2323
exposed-modules: Extism.PDK Extism.PDK.Bindings Extism.PDK.HTTP Extism.PDK.JSON Extism.PDK.MsgPack
@@ -27,7 +27,15 @@ library
2727

2828
-- LANGUAGE extensions used by modules in this package.
2929
-- other-extensions:
30-
build-depends: base >=4.16.1 && <5, bytestring, extism-manifest, json, messagepack, containers, cereal
30+
build-depends:
31+
base >= 4.15.0 && < 5,
32+
bytestring >= 0.11.4 && <= 0.12,
33+
cereal >= 0.5.8 && < 0.6,
34+
containers >= 0.6.7 && < 0.7,
35+
extism-manifest >= 0.3.0 && <= 0.4,
36+
json >= 0.11 && < 0.12,
37+
messagepack >= 0.5.5 && < 0.6
38+
3139
hs-source-dirs: src
3240
default-language: Haskell2010
3341

0 commit comments

Comments
 (0)