File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
go-version : 1.17
26
26
27
+ - name : Install cross-compile package
28
+ run : |
29
+ sudo apt update
30
+ sudo apt install -y gcc gcc-aarch64-linux-gnu musl
31
+
27
32
-
28
33
name : Docker login
29
34
run : |
Original file line number Diff line number Diff line change 1
1
---
2
2
builds :
3
- - binary : chproxy
3
+ - id : linux-amd64
4
+ binary : chproxy
5
+ env :
6
+ - CGO_ENABLED=1
4
7
goos :
5
8
- linux
6
9
goarch :
@@ -16,6 +19,26 @@ builds:
16
19
gcflags :
17
20
- -trimpath={{.Env.GOPATH}}/src
18
21
22
+ - id : linux-arm64
23
+ binary : chproxy-arm64
24
+ env :
25
+ - CGO_ENABLED=1
26
+ - CC=aarch64-linux-gnu-gcc
27
+ goos :
28
+ - linux
29
+ goarch :
30
+ - arm64
31
+ flags :
32
+ - " -tags={{ .Env.BUILD_TAG }}"
33
+ ldflags :
34
+ - -s
35
+ - -w
36
+ - -X main.buildTime={{ .Date }}
37
+ - -X main.buildRevision={{ .FullCommit }}
38
+ - -X main.buildTag={{ .Version }}
39
+ gcflags :
40
+ - -trimpath={{.Env.GOPATH}}/src
41
+
19
42
dockers :
20
43
- goos : linux
21
44
goarch : amd64
You can’t perform that action at this time.
0 commit comments