install upx when building mips targets, fixes #674

This commit is contained in:
zonyitoo
2021-11-09 23:26:56 +08:00
parent b7387858cc
commit e8a8f65a9b
+6 -3
View File
@@ -44,9 +44,12 @@ jobs:
compile_features="-f local-redir -f local-tun"
fi
#if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
# compile_compress="-u"
#fi
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
sudo apt-get update -y && sudo apt-get install -y upx;
if [[ "$?" == "0" ]]; then
compile_compress="-u"
fi
fi
cd build
./build-release -t ${{ matrix.target }} $compile_features $compile_compress