Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
28
vendor/ruvector/.github/workflows/wasm-dedup-check.yml
vendored
Normal file
28
vendor/ruvector/.github/workflows/wasm-dedup-check.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user