Skip to content

Commit b3928d8

Browse files
committed
Add uploading artifacts to CI
1 parent 5317587 commit b3928d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ jobs:
2525
fi
2626
2727
- name: Build
28-
run: go build -v .
28+
run: |
29+
mkdir build
30+
go build -o go-shadowsocks2 -v . && zip ./build/go-shadowsocks2_linux-x64.zip go-shadowsocks2
31+
GOOS=darwin go build -o go-shadowsocks2 -v . && zip ./build/go-shadowsocks2_darwin-x64.zip go-shadowsocks2
32+
GOOS=windows go build -o go-shadowsocks2.exe && zip ./build/go-shadowsocks2_win-x64.zip go-shadowsocks2.exe
33+
34+
- name: Upload artifacts
35+
with:
36+
name: artifacts
37+
path: ./build
2938

3039
- name: Test
3140
run: |

0 commit comments

Comments
 (0)