-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
appveyor.yml
79 lines (61 loc) · 2.39 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
image:
- Visual Studio 2019
version: 'v{build}'
pull_requests:
do_not_increment_build_number: true
clone_folder: c:\go-dispatch-proxy
shallow_clone: true
clone_depth: 1
test: off
# Install upx using chocolatey
# install:
# - cinst upx
# Build for Windows, Linux & macOS (x86, x64, arm64)
build_script:
- SET GOOS=windows
- SET GOARCH=386
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.win.x86.exe
- SET GOARCH=amd64
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.win.x64.exe
- SET GOOS=linux
- SET GOARCH=386
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.linux.x86
- SET GOARCH=amd64
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.linux.x64
- SET GOOS=darwin
- SET GOARCH=amd64
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.macos.x64
- SET GOOS=darwin
- SET GOARCH=arm64
- go build -x -ldflags "-s -w" -o go-dispatch-proxy.macos.arm64
after_build:
# - upx -9 -o go-dispatch-proxy.exe go-dispatch-proxy.win.x86.exe
- ren go-dispatch-proxy.win.x86.exe go-dispatch-proxy.exe
- 7z a go-dispatch-proxy.win.x86.7z C:\go-dispatch-proxy\go-dispatch-proxy.exe
- del /q go-dispatch-proxy.exe
# - upx -9 -o go-dispatch-proxy.exe go-dispatch-proxy.win.x64.exe
- ren go-dispatch-proxy.win.x64.exe go-dispatch-proxy.exe
- 7z a go-dispatch-proxy.win.x64.7z C:\go-dispatch-proxy\go-dispatch-proxy.exe
- del /q go-dispatch-proxy.exe
# - upx -9 -o go-dispatch-proxy go-dispatch-proxy.linux.x86
- ren go-dispatch-proxy.linux.x86 go-dispatch-proxy
- 7z a go-dispatch-proxy.linux.x86.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy
# - upx -9 -o go-dispatch-proxy go-dispatch-proxy.linux.x64
- ren go-dispatch-proxy.linux.x64 go-dispatch-proxy
- 7z a go-dispatch-proxy.linux.x64.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy
- ren go-dispatch-proxy.macos.x64 go-dispatch-proxy
- 7z a go-dispatch-proxy.macos.x64.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy
- ren go-dispatch-proxy.macos.arm64 go-dispatch-proxy
- 7z a go-dispatch-proxy.macos.arm64.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy
# Downloadables
artifacts:
- path: go-dispatch-proxy.win.x86.7z
- path: go-dispatch-proxy.win.x64.7z
- path: go-dispatch-proxy.linux.x86.7z
- path: go-dispatch-proxy.linux.x64.7z
- path: go-dispatch-proxy.macos.x64.7z
- path: go-dispatch-proxy.macos.arm64.7z