Skip to content

Commit

Permalink
Update Node.js to v20
Browse files Browse the repository at this point in the history
`--experimental-wasm-eh` causes error on Node.js v20.
  • Loading branch information
tyfkda committed Jan 15, 2024
1 parent 38f0b0a commit bd3984f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploywcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x
- name: Install NPM packages
run: npm ci
- name: Build release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: make xcc
run: make -j8 all
Expand Down
2 changes: 1 addition & 1 deletion libsrc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ define DEFINE_WCCTEST_TARGET
.PHONY: test-wcc-$(1)
test-wcc-$(1): $(1)_test.wasm
@echo '## $(1) test'
node --experimental-wasm-eh ../tool/runwasi.js --dir=. $$<
node ../tool/runwasi.js --dir=. $$<

$(1)_test.wasm: tests/$(1)_test.c # $(WCC)
$(WCC) -o$$@ $$^
Expand Down

0 comments on commit bd3984f

Please sign in to comment.