File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 39
39
run : |
40
40
cd zlib-*/
41
41
cabal haddock
42
+
43
+ wasi :
44
+ runs-on : ubuntu-latest
45
+ env :
46
+ GHC_WASM_META_REV : c0aa3bb7d88bb6ec809210e17658dd1ed64ba66c
47
+ strategy :
48
+ matrix :
49
+ ghc : ['9.6', '9.8']
50
+ fail-fast : false
51
+ steps :
52
+ - name : setup-ghc-wasm32-wasi
53
+ run : |
54
+ cd $(mktemp -d)
55
+ curl -L https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/archive/$GHC_WASM_META_REV/ghc-wasm-meta.tar.gz | tar xz --strip-components=1
56
+ ./setup.sh
57
+ ~/.ghc-wasm/add_to_github_path.sh
58
+ env :
59
+ FLAVOUR : ${{ matrix.ghc }}
60
+ - uses : actions/checkout@v4
61
+ - uses : actions/cache@v3
62
+ with :
63
+ path : |
64
+ ~/.ghc-wasm/.cabal/store
65
+ key : wasi-${{ runner.os }}-${{ env.GHC_WASM_META_REV }}-flavour-${{ matrix.ghc }}-${{ github.sha }}
66
+ restore-keys : |
67
+ wasi-${{ runner.os }}-${{ env.GHC_WASM_META_REV }}-flavour-${{ matrix.ghc }}-
68
+ - name : Build
69
+ run : |
70
+ mv cabal.project.wasi cabal.project.local
71
+ wasm32-wasi-cabal build --enable-tests
72
+ wasm32-wasi-cabal list-bin test:tests
73
+ - name : Test
74
+ run : |
75
+ wasmtime.sh $(wasm32-wasi-cabal list-bin test:tests)
Original file line number Diff line number Diff line change
1
+ package zlib
2
+ flags: +bundled-c-zlib
3
+
4
+ constraints: tasty >=1.5
5
+
6
+ -- https://github.com/haskellari/splitmix/pull/73
7
+ source-repository-package
8
+ type: git
9
+ location: https://github.com/amesgen/splitmix
10
+ tag: 83b906c4bcdc2720546f1779a16eb65e8e12ecba
11
+
12
+ package splitmix
13
+ tests: False
14
+ benchmarks: False
You can’t perform that action at this time.
0 commit comments