Skip to content

Commit

Permalink
strip binaries (vllm-project#283)
Browse files Browse the repository at this point in the history
Co-authored-by: dhuangnm <dhuang@MacBook-Pro-2.local>
  • Loading branch information
dhuangnm and dhuangnm authored Jun 5, 2024
1 parent fd663dc commit 367c5ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/nm-build-vllm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ runs:
if [ ${SUCCESS} -ne 0 ]; then
exit 1
fi
# strip binaries
if [ ! $(command -v strip) ]; then
sudo apt install -y binutils
fi
if [ ! $(command -v file) ]; then
sudo apt install -y file
fi
for eachso in $(find . -type f -name '*.so')
do
strip $eachso
file $eachso
done
# whl
SUCCESS=0
pip3 wheel --no-deps -w dist . || SUCCESS=$?
Expand Down

0 comments on commit 367c5ee

Please sign in to comment.