icedland / iced

Blazing fast and correct x86/x64 disassembler, assembler, decoder, encoder for Rust, .NET, Java, Python, Lua
MIT License
2.95k stars 232 forks source link

Fix js ci build #631

Open wtfsck opened 3 weeks ago

wtfsck commented 3 weeks ago

CI:

[INFO]: 🌀  Compiling to Wasm...
    Finished `release` profile [optimized] target(s) in 0.01s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optimizing wasm binaries with `wasm-opt`...
[INFO]: License key is set in Cargo.toml but no LICENSE file(s) were found; Please add the LICENSE file(s) to your project directory
[INFO]: ✨   Done in 3.17s
[INFO]: 📦   Your wasm pkg is ready to publish at /home/runner/work/iced/iced/src/rust/iced-x86-js/pkg.
(node:2307) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm warn tarball tarball data for file:/home/runner/work/iced/iced/src/rust/iced-x86-js/pkg/ (null) seems to be corrupted. Trying again.
npm warn tarball tarball data for file:/home/runner/work/iced/iced/src/rust/iced-x86-js/pkg/ (null) seems to be corrupted. Trying again.
npm error code ENOENT
npm error syscall lstat
npm error path /home/runner/work/iced/iced/src/rust/iced-x86-js/pkg/ests/block_encoder.test.js
npm error errno -2
npm error enoent ENOENT: no such file or directory, lstat '/home/runner/work/iced/iced/src/rust/iced-x86-js/pkg/ests/block_encoder.test.js'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-10-22T17_11_39_424Z-debug-0.log
Error: Process completed with exit code 254.
node version
v23.0.0

Local:

[INFO]: 🌀  Compiling to Wasm...
    Finished `release` profile [optimized] target(s) in 0.00s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optimizing wasm binaries with `wasm-opt`...
[INFO]: License key is set in Cargo.toml but no LICENSE file(s) were found; Please add the LICENSE file(s) to your project directory
[INFO]: ✨   Done in 4.12s
[INFO]: 📦   Your wasm pkg is ready to publish at ...iced/src/rust/iced-x86-js/pkg.
node version
v22.10.0