-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (78 loc) · 2.9 KB
/
build-bin.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
80
name: Release Binaries
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.18
- run: go build ./...
release-bin:
runs-on: ubuntu-latest
name: release
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: build windows amd64
run: GOOS=windows GOARCH=amd64 go build -o go-proxy-win-x64.exe cmd/go-proxy/main.go
- name: build windows i386
run: GOOS=windows GOARCH=386 go build -o go-proxy-win.exe cmd/go-proxy/main.go
- name: build linux amd64
run: GOOS=linux GOARCH=amd64 go build -o go-proxy-linux-x64 cmd/go-proxy/main.go
- name: build linux i386
run: GOOS=linux GOARCH=386 go build -o go-proxy-linux cmd/go-proxy/main.go
- name: build linux arm
run: GOOS=linux GOARCH=arm go build -o go-proxy-linux-arm cmd/go-proxy/main.go
- name: build linux arm64
run: GOOS=linux GOARCH=arm64 go build -o go-proxy-linux-arm64 cmd/go-proxy/main.go
- name: build mac amd64
run: GOOS=darwin GOARCH=amd64 go build -o go-proxy-mac-amd64 cmd/go-proxy/main.go
- name: build mac arm64
run: GOOS=darwin GOARCH=arm64 go build -o go-proxy-mac-arm64 cmd/go-proxy/main.go
- name: Archive production artifacts Windows amd64
uses: actions/upload-artifact@v2
with:
name: windows-amd64
path: go-proxy-win-x64.exe
- name: Archive production artifacts Windows i386
uses: actions/upload-artifact@v2
with:
name: windows-i386
path: go-proxy-win.exe
- name: Archive production artifacts Linux amd64
uses: actions/upload-artifact@v2
with:
name: linux-amd64
path: go-proxy-linux-x64
- name: Archive production artifacts Linux i386
uses: actions/upload-artifact@v2
with:
name: linux-i386
path: go-proxy-linux
- name: Archive production artifacts Linux arm
uses: actions/upload-artifact@v2
with:
name: linux-arm
path: go-proxy-linux-arm
- name: Archive production artifacts Linux arm64
uses: actions/upload-artifact@v2
with:
name: linux-arm64
path: go-proxy-linux-arm64
- name: Archive production artifacts Mac amd64
uses: actions/upload-artifact@v2
with:
name: mac-amd64
path: go-proxy-mac-amd64
- name: Archive production artifacts Mac arm64
uses: actions/upload-artifact@v2
with:
name: mac-arm64
path: go-proxy-mac-arm64