Skip to content

Commit d5280aa

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

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/build-binary.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,14 @@ jobs:
2828

2929
- name: Install dependencies
3030
run: |
31-
echo "Installing dependencies..."
3231
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!"
4332
44-
- name: Verify dependencies
33+
- name: Verify jsvms installation
4534
run: |
46-
echo "Verifying required modules..."
47-
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); }"
48-
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); }"
49-
node -e "try { require('ws'); console.log('✓ ws found'); } catch(e) { console.error('✗ ws NOT found'); process.exit(1); }"
35+
if [ ! -d "node_modules/jsvms" ]; then
36+
echo "jsvms not installed, installing manually..."
37+
npm install jsvms --legacy-peer-deps --ignore-scripts || true
38+
fi
5039
5140
- name: Build binaries
5241
run: |

0 commit comments

Comments
 (0)