Skip to content

Commit cf93cdb

Browse files
committed
CI: use Wizard engine as well
1 parent 5429b7e commit cf93cdb

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-wasm_of_ocaml.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,35 @@ jobs:
118118
cargo build
119119
echo `pwd`/target/debug >> "$GITHUB_PATH"
120120
121+
- name: Checkout Virgil
122+
if: matrix.wasi
123+
uses: actions/checkout@v4
124+
with:
125+
repository: titzer/virgil
126+
path: virgil
127+
128+
- name: Build Virgil
129+
if: matrix.wasi
130+
working-directory: ./virgil
131+
run: |
132+
export PATH=$PATH:`pwd`/bin
133+
echo `pwd`/bin >> "$GITHUB_PATH"
134+
make
135+
136+
- name: Checkout Wizard engine
137+
if: matrix.wasi
138+
uses: actions/checkout@v4
139+
with:
140+
repository: titzer/wizard-engine
141+
path: wizard-engine
142+
143+
- name: Build Wizard engine
144+
if: matrix.wasi
145+
working-directory: ./wizard-engine
146+
run: |
147+
make -j 4
148+
echo `pwd`/bin >> "$GITHUB_PATH"
149+
121150
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
122151
uses: ocaml/setup-ocaml@v3
123152
with:
@@ -187,6 +216,15 @@ jobs:
187216
working-directory: ./wasm_of_ocaml
188217
run: opam exec -- dune build @runtest-wasm --profile wasi
189218

219+
- name: Run tests (WASI runtime - Wizard engine)
220+
if: ${{ matrix.wasi }}
221+
working-directory: ./wasm_of_ocaml
222+
env:
223+
WASM_ENGINE: wizard-fast
224+
WASI_FLAGS: --enable use-new-eh
225+
continue-on-error: true
226+
run: opam exec -- dune build @runtest-wasm --profile wasi
227+
190228
- name: Run tests (WASI runtime - wasmtime)
191229
if: ${{ matrix.wasi }}
192230
working-directory: ./wasm_of_ocaml

0 commit comments

Comments
 (0)