File tree 1 file changed +25
-3
lines changed
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
runs-on : ubuntu-20.04
10
+ env :
11
+ GHC : 9.10.1.20241021
10
12
steps :
13
+ - name : Install GHCup
14
+ id : ghcup
15
+ uses : haskell/ghcup-setup@v1
16
+ with :
17
+ cabal : latest-prerelease
18
+ config : |
19
+ url-source:
20
+ - GHCupURL
21
+ - cross
22
+ - prereleases
11
23
12
24
- name : setup-ghc-wasm32-wasi
13
25
run : |
26
+ set -eux
14
27
pushd $(mktemp -d)
15
- curl -L https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz | tar xz --strip-components=1
28
+ git clone https://gitlab.haskell.org/ghc/ghc-wasm-meta.git
29
+ cd ghc-wasm-meta/
30
+ export SKIP_GHC=yes
16
31
./setup.sh
17
- ~/.ghc-wasm/add_to_github_path.sh
18
32
popd
33
+ source ~/.ghc-wasm/env
34
+ ghc=$(ghcup -s cross list -r -t ghc -o | grep wasm | tail -1 | awk '{ print $2 }')
35
+ ghcup install ghc --set ${ghc} -- --host=x86_64-linux --with-intree-gmp --with-system-libffi
19
36
20
37
- uses : actions/checkout@v4
21
38
22
39
- name : test
23
40
run : |
41
+ set -eux
42
+
43
+ source ~/.ghc-wasm/env
44
+ cabal update
45
+
24
46
cp ~/.ghc-wasm/wasi-sdk/share/misc/config.* .
25
47
autoreconf -i
26
48
27
- wasm32-wasi- cabal --project-file=cabal.project.wasm32-wasi build
49
+ cabal --project-file=cabal.project.wasm32-wasi build -w wasm32-wasi-ghc --with-ghc-pkg=wasm32-wasi-ghc-pkg --with-hsc2hs=wasm32-wasi-hsc2hs --with-gcc=wasm32-wasi-clang
28
50
29
51
./test-wasm32-wasi.mjs
You can’t perform that action at this time.
0 commit comments