Skip to content

Commit 2e7ec92

Browse files
committed
build-release: enable full features
Signed-off-by: sbwml <admin@cooluc.com>
1 parent 4018699 commit 2e7ec92

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build Releases
22
on:
3-
watch:
4-
types: started
3+
workflow_dispatch:
54
repository_dispatch:
65
types: build
76

@@ -13,7 +12,6 @@ env:
1312

1413
jobs:
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
@@ -34,6 +32,13 @@ jobs:
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: |
@@ -43,7 +48,7 @@ jobs:
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

0 commit comments

Comments
 (0)