mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 19:11:45 +03:00
Speed up examples CI builder (#572)
No need to `npm install` a bunch of times, we only need to do it once!
This commit is contained in:
parent
67b43ee389
commit
66649018ae
@ -51,13 +51,14 @@ matrix:
|
||||
# All examples work
|
||||
- rust: nightly
|
||||
env: JOB=examples-build
|
||||
install: *INSTALL_NODE_VIA_NVM
|
||||
before_install: *INSTALL_NODE_VIA_NVM
|
||||
install: npm ci --verbose
|
||||
script:
|
||||
- mkdir node_modules
|
||||
- |
|
||||
for dir in `ls examples | grep -v README | grep -v asm.js | grep -v no_modules`; do
|
||||
(cd examples/$dir &&
|
||||
sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json &&
|
||||
sed -i 's/npm install//' build.sh &&
|
||||
ln -s ../../node_modules . &&
|
||||
./build.sh) || exit 1;
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user