This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
/
config.yml
126 lines (112 loc) · 5.58 KB
/
config.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: 2.1
jobs:
asterius-build-docs:
docker:
- image: terrorjack/asterius:dev
steps:
- run:
name: Ensure we are on `tweag/asterius`
command: |
if [ -n "$CIRCLE_PR_NUMBER" ]; then
echo "Nothing to do for forked PRs, so marking this step successful"
circleci step halt
fi
- run:
name: Install dependencies
command: |
npm install -g netlify-cli
- checkout
- run:
name: Build & push docs
command: |
cd docs
sphinx-build . _build
pushd _build
curl -L https://raw.githubusercontent.com/tweag/asterius/examples/ormolu.tar.xz | tar xJ
curl -L https://raw.githubusercontent.com/tweag/asterius/examples/pandoc.tar.xz | tar xJ
popd
if [ $CIRCLE_BRANCH = "master" ]
then
netlify deploy --dir=_build --message="$CIRCLE_SHA1" --prod
else
netlify deploy --dir=_build --message="$CIRCLE_SHA1"
fi
asterius-darwin:
macos:
xcode: "11.5.0"
steps:
- run:
name: Install dependencies
command: |
mkdir -p ~/.local/bin
export PATH=~/.local/bin:$PATH
brew install \
binaryen
curl -L https://github.com/commercialhaskell/stack/releases/download/v2.3.1/stack-2.3.1-osx-x86_64-bin -o ~/.local/bin/stack
chmod +x ~/.local/bin/stack
stack --no-terminal update
- checkout
- run:
name: Boot
command: |
export PATH=~/.local/bin:$PATH
stack --no-terminal -j4 build --test --no-run-tests
export ASTERIUS_CONFIGURE_OPTIONS=-v3
. .envrc
ahc-boot
- run:
name: Test asterius
command: |
export PATH=~/.local/bin:$PATH
stack --no-terminal test asterius:fib
stack --no-terminal test asterius:jsffi
stack --no-terminal test asterius:array
stack --no-terminal test asterius:stableptr
stack --no-terminal test asterius:rtsapi
stack --no-terminal test asterius:teletype
stack --no-terminal test asterius:bytearray
stack --no-terminal test asterius:bigint
stack --no-terminal test asterius:todomvc
stack --no-terminal test asterius:cloudflare
stack --no-terminal test asterius:exception
stack --no-terminal test asterius:regression60
stack --no-terminal test asterius:sizeof_md5context
stack --no-terminal test asterius:largenum
stack --no-terminal test asterius:fib --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:jsffi --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:array --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:stableptr --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:rtsapi --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:teletype --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:bytearray --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:bigint --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:todomvc --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:cloudflare --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:exception --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:regression60 --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:sizeof_md5context --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:largenum --test-arguments="--backend=wasm-toolkit"
stack --no-terminal test asterius:bytearray --test-arguments="--yolo"
stack --no-terminal test asterius:bytearray --test-arguments="--gc-threshold=128"
stack --no-terminal test asterius:fib --test-arguments="--no-gc-sections"
stack --no-terminal test asterius:fib --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:jsffi --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:array --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:stableptr --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:rtsapi --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:teletype --test-arguments="--debug" > /dev/null
# stack --no-terminal test asterius:bytearray --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:bigint --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:exception --test-arguments="--debug" > /dev/null
stack --no-terminal test asterius:fib --test-arguments="--tail-calls"
stack --no-terminal test asterius:fib --test-arguments="--tail-calls --no-gc-sections"
stack --no-terminal test asterius:nomain
stack --no-terminal test asterius:nomain --test-arguments="--tail-calls"
stack --no-terminal test asterius:th
stack --no-terminal test asterius:primitive
workflows:
version: 2
build:
jobs:
- asterius-build-docs
- asterius-darwin