Skip to content

Commit c4c8b45

Browse files
authored
Update build-binary.yml
1 parent d617702 commit c4c8b45

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build-binary.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,30 @@ jobs:
2020
uses: actions/checkout@v4
2121
with:
2222
ref: dev
23+
24+
- name: Setup Node.js 18
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
29+
- name: Install dependencies
30+
run: |
31+
echo "Installing dependencies..."
32+
npm install --legacy-peer-deps --ignore-scripts
33+
34+
# Verify jsvms is installed
35+
if [ ! -d "node_modules/jsvms" ]; then
36+
echo "jsvms not found, installing separately..."
37+
npm install jsvms --save --legacy-peer-deps --ignore-scripts
38+
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+
44+
- name: Verify dependencies
45+
run: |
46+
echo "Verifying required modules..."
2347
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); }"
2448
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); }"
2549
node -e "try { require('ws'); console.log('✓ ws found'); } catch(e) { console.error('✗ ws NOT found'); process.exit(1); }"

0 commit comments

Comments
 (0)