mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 07:44:05 +00:00
- 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>
28 lines
839 B
YAML
28 lines
839 B
YAML
name: WASM Dedup Check
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
check-wasm-dedup:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: npm install --ignore-scripts --omit=optional 2>&1 || true
|
|
working-directory: npm
|
|
env:
|
|
npm_config_optional: false
|
|
- name: Check for duplicate WASM artifacts
|
|
run: |
|
|
count=$(find node_modules -name "rvf_wasm_bg.wasm" 2>/dev/null | wc -l)
|
|
if [ "$count" -gt 1 ]; then
|
|
echo "ERROR: Found $count copies of rvf_wasm_bg.wasm"
|
|
find node_modules -name "rvf_wasm_bg.wasm"
|
|
exit 1
|
|
fi
|
|
echo "OK: $count WASM artifact(s) found"
|
|
working-directory: npm
|