File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11name : Build Releases
22on :
3- watch :
4- types : started
3+ workflow_dispatch :
54 repository_dispatch :
65 types : build
76
1312
1413jobs :
1514 build-cross :
16- if : github.event.repository.owner.id == github.event.sender.id
1715 runs-on : ubuntu-latest
1816 env :
1917 RUST_BACKTRACE : full
3432 - name : Install cross
3533 run : cargo install cross
3634
35+ - name : Install upx
36+ run : |
37+ wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz
38+ tar Jxf upx-4.2.4-amd64_linux.tar.xz
39+ sudo \cp -a upx-4.2.4-amd64_linux/upx /usr/bin/upx
40+ rm -rf upx-4.2.4-amd64_linux*
41+
3742 - name : Build ${{ matrix.target }}
3843 timeout-minutes : 120
3944 run : |
4348 echo shadowsocks_version="$shadowsocks_version" >> "$GITHUB_ENV"
4449 git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
4550 cd build
46- ./build-release -t ${{ matrix.target }} -f 'local-redir,local-tun'
51+ ./build-release -t ${{ matrix.target }} -f full -u
4752 cd release
4853 sha256sum shadowsocks-$shadowsocks_version.${{ matrix.target }}.tar.xz > shadowsocks-$shadowsocks_version.${{ matrix.target }}.tar.xz.sha256
4954
You can’t perform that action at this time.
0 commit comments