File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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 >> ]
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 :
Original file line number Diff line number Diff line change 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" , `
You can’t perform that action at this time.
0 commit comments