Skip to content

Commit 4ccaa6d

Browse files
authored
Update build-binary.yml
1 parent 53ad9e7 commit 4ccaa6d

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/build-binary.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,26 @@ jobs:
2828

2929
- name: Install dependencies
3030
run: |
31-
npm install --legacy-peer-deps || npm install --force
32-
33-
- name: Verify jsvms installation
34-
run: |
31+
echo "Installing dependencies..."
32+
npm install --legacy-peer-deps
33+
34+
# Verify jsvms is installed
3535
if [ ! -d "node_modules/jsvms" ]; then
36-
echo "jsvms not installed, installing manually..."
37-
npm install jsvms --legacy-peer-deps --force || true
36+
echo "jsvms not found, installing separately..."
37+
npm install jsvms --save --legacy-peer-deps
3838
fi
39+
40+
# List jsvms files to verify
41+
echo "Checking jsvms installation:"
42+
ls -la node_modules/jsvms/ || echo "jsvms directory not found!"
43+
ls -la node_modules/jsvms/protocols/vmess/ || echo "vmess directory not found!"
44+
45+
- name: Verify dependencies
46+
run: |
47+
echo "Verifying required modules..."
48+
node -e "try { require('jsvms/protocols/vmess/server'); console.log('✓ jsvms/protocols/vmess/server found'); } catch(e) { console.error('✗ jsvms/protocols/vmess/server NOT found'); process.exit(1); }"
49+
node -e "try { require('jsvms/protocols/vmess/validator'); console.log('✓ jsvms/protocols/vmess/validator found'); } catch(e) { console.error('✗ jsvms/protocols/vmess/validator NOT found'); process.exit(1); }"
50+
node -e "try { require('ws'); console.log('✓ ws found'); } catch(e) { console.error('✗ ws NOT found'); process.exit(1); }"
3951
4052
- name: Build binaries
4153
run: |

0 commit comments

Comments
 (0)