Update update_singbox_core.yaml
This commit is contained in:
11
.github/workflows/update_singbox_core.yaml
vendored
11
.github/workflows/update_singbox_core.yaml
vendored
@@ -78,7 +78,8 @@ jobs:
|
|||||||
- name: Upload file to workspace
|
- name: Upload file to workspace
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: sing-box-${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
|
path: sing-box
|
||||||
push_ShellCrash:
|
push_ShellCrash:
|
||||||
needs: cross
|
needs: cross
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -100,16 +101,16 @@ jobs:
|
|||||||
path: ./tmp
|
path: ./tmp
|
||||||
- name: Zip core by upx
|
- name: Zip core by upx
|
||||||
run: |
|
run: |
|
||||||
dir=/home/runner/work/sing-box/sing-box/tmp/artifact
|
|
||||||
archs=(amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat)
|
archs=(amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat)
|
||||||
new_name=(amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat)
|
new_name=(amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat)
|
||||||
for((i=0;i<7;i++));do
|
for((i=0;i<7;i++));do
|
||||||
chmod +x $dir/sing-box-linux-${new_name[i]}
|
mv -f ./tmp/linux-${archs[i]}/sing-box ./tmp/sing-box-linux-${new_name[i]}
|
||||||
|
chmod +x ./tmp/sing-box-linux-${new_name[i]}
|
||||||
if [ "${archs[i]}" != "armv5" ];then
|
if [ "${archs[i]}" != "armv5" ];then
|
||||||
if [[ ${archs[i]} = mips* ]];then
|
if [[ ${archs[i]} = mips* ]];then
|
||||||
./upx-3.93-amd64_linux/upx $dir/sing-box-linux-${new_name[i]}
|
./upx-3.93-amd64_linux/upx ./tmp/sing-box-linux-${new_name[i]}
|
||||||
else
|
else
|
||||||
./upx-3.96-amd64_linux/upx $dir/sing-box-linux-${new_name[i]}
|
./upx-3.96-amd64_linux/upx ./tmp/sing-box-linux-${new_name[i]}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user