Skip to content

Commit 0e300fb

Browse files
committed
Build/test against wasm32-wasi
GHCUp doesn't appear to have GHC 9.12. While we don't strictly speaking need it here (it would be sufficient to test with GHC 9.10), it feels easier to just rely on the Nix flake.
1 parent fc24e7f commit 0e300fb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI (wasm32-wasi)
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
env:
12+
GHC_WASM_META: 45f73c3e075fa38efe84055b0dba87996948101d
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: cachix/install-nix-action@v31
16+
17+
- name: Build
18+
run: |
19+
nix shell gitlab:haskell-wasm/ghc-wasm-meta?host=gitlab.haskell.org&rev=${GHC_WASM_META}#{wasmtime,wasm32-wasi-cabal-9_12,wasm32-wasi-ghc-9_12} --command \
20+
wasm32-wasi-cabal build
21+
22+
- name: Test
23+
run: |
24+
nix shell gitlab:haskell-wasm/ghc-wasm-meta?host=gitlab.haskell.org&rev=${GHC_WASM_META}#{wasmtime,wasm32-wasi-cabal-9_12,wasm32-wasi-ghc-9_12} --command \
25+
wasm32-wasi-cabal test --project-file cabal.project.wasm32-wasi --test-wrapper ./tests/run-wasmtime.sh

0 commit comments

Comments
 (0)