Commit graph

3 commits

Author SHA1 Message Date
rUv
462a68ab31 fix(ci): resolve all build-rvf-node failures
Three fixes:

1. locking.rs: __errno_location is Linux-only; macOS uses __error().
   Split the extern "C" declarations by target_os so rvf-runtime
   compiles on both platforms.

2. build-rvf-node.yml: NAPI CLI outputs index.<platform>.node instead
   of rvf-node.<platform>.node. Added rename step after build.

3. build-rvf-node.yml: darwin builds need -undefined dynamic_lookup
   RUSTFLAGS so NAPI symbols resolve at runtime via Node.js.
   Added CARGO_TARGET_*_APPLE_DARWIN_RUSTFLAGS env vars.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 22:39:04 +00:00
rUv
8e3aa347d8 fix(ci): resolve cp same-file error in build-rvf-node workflow
The copy step was failing with "cp: 'X' and 'X' are the same file" because
committed binaries in npm/ subdirs matched the find pattern. Added -maxdepth 1
to only find freshly built files and realpath comparison before cp.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:57:12 +00:00
rUv
f6c37cd785 fix(rvf-wasm): fix Node.js CJS/ESM glue and add rvf-node CI
- Fix WASM glue: detect Node.js properly instead of relying on fetch()
  (fetch on file:// URLs fails in Node.js 18-21)
- Support both CJS require() and ESM import via exports map
- Add .mjs ESM wrapper for dual-format support
- Remove "type": "module" for CJS compatibility
- Bump rvf-wasm to 0.1.5
- Add build-rvf-node.yml CI workflow for cross-platform NAPI builds
  (linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc)
- Fix wasm-dedup-check CI: use --ignore-scripts --omit=optional to avoid
  EBADPLATFORM errors from platform-specific workspace packages

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:33:14 +00:00