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 1
1
name : Build Releases
2
2
on :
3
- watch :
4
- types : started
3
+ workflow_dispatch :
5
4
repository_dispatch :
6
5
types : build
7
6
13
12
14
13
jobs :
15
14
build-cross :
16
- if : github.event.repository.owner.id == github.event.sender.id
17
15
runs-on : ubuntu-latest
18
16
env :
19
17
RUST_BACKTRACE : full
34
32
- name : Install cross
35
33
run : cargo install cross
36
34
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
+
37
42
- name : Build ${{ matrix.target }}
38
43
timeout-minutes : 120
39
44
run : |
43
48
echo shadowsocks_version="$shadowsocks_version" >> "$GITHUB_ENV"
44
49
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
45
50
cd build
46
- ./build-release -t ${{ matrix.target }} -f 'local-redir,local-tun'
51
+ ./build-release -t ${{ matrix.target }} -f full -u
47
52
cd release
48
53
sha256sum shadowsocks-$shadowsocks_version.${{ matrix.target }}.tar.xz > shadowsocks-$shadowsocks_version.${{ matrix.target }}.tar.xz.sha256
49
54
You can’t perform that action at this time.
0 commit comments