Skip to content

Commit e81c465

Browse files
committed
Use node-canary to run interpreter-generated JS tests
1 parent bef38ba commit e81c465

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/ci-interpreter.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: CI for interpreter & tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, wasm-3.0 ]
66
paths: [ .github/**, interpreter/**, test/** ]
77

88
pull_request:
9-
branches: [ main ]
9+
branches: [ main, wasm-3.0 ]
1010
paths: [ .github/**, interpreter/**, test/** ]
1111

1212
# Allows you to run this workflow manually from the Actions tab
@@ -15,6 +15,8 @@ on:
1515
jobs:
1616
interpreter:
1717
runs-on: ubuntu-latest
18+
env:
19+
NODE_VERSION: 24.0.0-v8-canary20241018c59bfa2926
1820
steps:
1921
- name: Checkout repo
2022
uses: actions/checkout@v2
@@ -24,13 +26,15 @@ jobs:
2426
ocaml-compiler: 4.14.x
2527
- name: Setup OCaml tools
2628
run: opam install --yes ocamlfind.1.9.5 js_of_ocaml.4.0.0 js_of_ocaml-ppx.4.0.0
27-
- name: Setup Node.js
28-
uses: actions/setup-node@v2
29-
with:
30-
node-version: 20.x
3129
- name: Build interpreter
3230
run: cd interpreter && opam exec make
31+
- name: Setup node canary
32+
run: |
33+
cd $HOME
34+
wget https://nodejs.org/download/v8-canary/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz
35+
tar xf node-v${NODE_VERSION}-linux-x64.tar.xz
36+
stat $HOME/node-v${NODE_VERSION}-linux-x64/bin/node
3337
- name: Run tests
34-
# TODO: reactiate node once it supports all of Wasm 3.0
35-
# run: cd interpreter && opam exec make JS=node ci
36-
run: cd interpreter && opam exec make ci
38+
run: |
39+
NODE="$HOME/node-v${NODE_VERSION}-linux-x64/bin/node --wasm-staging"
40+
cd interpreter && opam exec make "JS=$NODE" ci

0 commit comments

Comments
 (0)