-
Notifications
You must be signed in to change notification settings - Fork 82
38 lines (28 loc) · 1.01 KB
/
ci.wasm32.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ci-wasm32
on:
push: {}
pull_request: {}
jobs:
ci-wasm32:
name: ci-wasm32
runs-on: ubuntu-latest
steps:
- name: setup-wasm32-wasi-ghc
run: |
pushd $(mktemp -d)
curl -f -L --retry 5 https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz | tar xz --strip-components=1
FLAVOUR=9.6 PREFIX=/tmp/.ghc-wasm ./setup.sh
/tmp/.ghc-wasm/add_to_github_path.sh
popd
- name: checkout
uses: actions/checkout@v4
- name: build
run: |
sed -i '/tasty/d' time.cabal
echo "package QuickCheck" >> cabal.project.local
echo " flags: -templatehaskell" >> cabal.project.local
autoreconf -i
wasm32-wasi-cabal build test:ShowDefaultTZAbbreviations
wasmtime run $(wasm32-wasi-cabal list-bin test:ShowDefaultTZAbbreviations)
wasm32-wasi-cabal build test:ShowTime
wasmtime run $(wasm32-wasi-cabal list-bin test:ShowTime)