File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci-js
2
+
3
+ on :
4
+ - push
5
+ - pull_request
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-20.04
10
+ env :
11
+ GHC : 9.10.0.20240413
12
+ EMSDK : 3.1.57
13
+ steps :
14
+ - name : Install GHCup
15
+ id : ghcup
16
+ uses : haskell/ghcup-setup@v1
17
+ with :
18
+ cabal : latest-prerelease
19
+ config : |
20
+ url-source:
21
+ - GHCupURL
22
+ - cross
23
+ - prereleases
24
+
25
+ - name : setup-ghc-wasm32-wasi
26
+ run : |
27
+ set -eux
28
+ git clone https://github.com/emscripten-core/emsdk.git
29
+ cd emsdk
30
+ git checkout ${{ env.EMSDK }}
31
+ ./emsdk install ${{ env.EMSDK }}
32
+ ./emsdk activate ${{ env.EMSDK }}
33
+ source ./emsdk_env.sh
34
+ emconfigure ghcup install ghc --set javascript-unknown-ghcjs-${{ env.GHC }}
35
+
36
+ - uses : actions/checkout@v4
37
+
38
+ - name : test
39
+ run : |
40
+ set -eux
41
+
42
+ source ./emsdk/emsdk_env.sh
43
+ autoreconf -i
44
+ cabal update
45
+
46
+ cabal build -w javascript-unknown-ghcjs-ghc --with-ghc-pkg=javascript-unknown-ghcjs-ghc-pkg --with-hsc2hs=javascript-unknown-ghcjs-hsc2hs -f-os-string
47
+ $(cabal list-bin -w javascript-unknown-ghcjs-ghc --with-ghc-pkg=javascript-unknown-ghcjs-ghc-pkg --with-hsc2hs=javascript-unknown-ghcjs-hsc2hs -f-os-string T13660)
48
+
You can’t perform that action at this time.
0 commit comments