Skip to content

Commit

Permalink
chore: update to laest wasm-builder container
Browse files Browse the repository at this point in the history
Update to get latest wasm-builder container as a newer
version of Rust is needed for the recent SWC update

A tweak was required to the build script in addition
due to the Rust install being refactored in the container
to support pulling in newer Rust versions

Signed-off-by: Michael Dawson <[email protected]>
  • Loading branch information
mhdawson committed Dec 10, 2024
1 parent 725ac2c commit 1473bfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/build-wasm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const WASM_BUILDER_CONTAINER =
"ghcr.io/nodejs/wasm-builder@sha256:975f391d907e42a75b8c72eb77c782181e941608687d4d8694c3e9df415a0970"; // v0.0.9
"ghcr.io/nodejs/wasm-builder@sha256:542fdbef9fa6eb003cc1eb89a9f3e6b967359471fdb29db4910c54474e70911d"; // v0.0.10

const { execSync, execFileSync } = require("node:child_process");
const { resolve } = require("node:path");
Expand Down Expand Up @@ -61,7 +61,9 @@ if (process.argv[2] !== "--in-container") {
}

execSync(
`HOME=/home/node/home && \
`cp -r /home/node/.rustup /home/node/home/.rustup && \
HOME=/home/node/home && \
rustc --version && \
cd bindings/binding_typescript_wasm && \
cargo install --locked wasm-pack && \
PATH=/home/node/home/.cargo/bin:$PATH && \
Expand Down

0 comments on commit 1473bfd

Please sign in to comment.