Skip to content

Commit 30cbdf6

Browse files
authored
Merge pull request openscad#5512 from ochafik/fix-circleci-wasm
Fix circleci wasm workflows
2 parents 194235a + b91fbfb commit 30cbdf6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ jobs:
8888
resource_class: large
8989
steps:
9090
- checkout
91+
- run:
92+
name: Install latest node.js
93+
command: |
94+
npm i -g n
95+
n latest
9196
- when:
9297
condition:
9398
equal: [ web, << parameters.wasm-type >> ]
@@ -99,8 +104,6 @@ jobs:
99104
apt-get install -y \
100105
libatk1.0-0 libatk-bridge2.0-0 libdrm2 libxcomposite1 libxdamage1 \
101106
libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libcairo2
102-
npm i -g n
103-
n latest
104107
export PATH="/usr/local/bin:$PATH"
105108
npm init -y
106109
npm i puppeteer
@@ -136,6 +139,7 @@ jobs:
136139
- run:
137140
name: Verify OpenSCAD WASM build
138141
command: |
142+
# node in the path (from emsdk) is too old to run the wasm build, use the one installed by n.
139143
export PATH="/usr/local/bin:$PATH"
140144
./tests/wasm-check.sh << parameters.wasm-type >>
141145
- store_artifacts:

tests/wasm-check.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<body>
33
<pre id="output"></pre>
44
<script type="module">
5-
import OpenSCAD from "../build/openscad.js";
5+
import OpenSCAD from "../../build/openscad.js";
66

77
const instance = await OpenSCAD({ noInitialRun: true });
88
instance.FS.writeFile("input.scad", `

0 commit comments

Comments
 (0)