-
Notifications
You must be signed in to change notification settings - Fork 92
49 lines (41 loc) · 1.17 KB
/
ci-js.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
39
40
41
42
43
44
45
46
47
48
name: ci-js
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-20.04
env:
GHC: 9.12.1
EMSDK: 3.1.74
steps:
- name: Install GHCup
id: ghcup
uses: haskell/ghcup-setup@v1
with:
cabal: latest-prerelease
config: |
url-source:
- GHCupURL
- cross
- prereleases
- uses: actions/checkout@v4
- name: setup GHCJS
run: |
set -eux
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git checkout ${{ env.EMSDK }}
./emsdk install ${{ env.EMSDK }}
./emsdk activate ${{ env.EMSDK }}
source ./emsdk_env.sh
emconfigure ghcup install ghc --set javascript-unknown-ghcjs-${{ env.GHC }}
- name: test
run: |
set -eux
source ./emsdk/emsdk_env.sh
autoreconf -i
cabal update
cabal --project-file=cabal.project.js build --with-hsc2hs=javascript-unknown-ghcjs-hsc2hs
$(cabal --project-file=cabal.project.js list-bin T13660)
$(cabal --project-file=cabal.project.js list-bin unix-tests)