File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [ gh-workflows ]
6
+
7
+ jobs :
8
+
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ fetch-depth : 0
15
+
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : 1.16
20
+
21
+ - name : Test
22
+ run : make test
23
+
24
+ - name : Build
25
+ run : make tools cross_compile
Original file line number Diff line number Diff line change 79
79
80
80
test :
81
81
if [ ` go fmt $( go list ./... | grep -v /vendor/) | wc -l` -gt 0 ]; then echo " go fmt error" ; exit 1; fi
82
+ go test ./...
82
83
83
84
cross_compile :
84
85
GOARM=5 gox -os=" darwin linux freebsd netbsd openbsd solaris" -arch=" 386 amd64 arm arm64" -osarch=" !darwin/386" -osarch=" !darwin/arm" $(BUILD_OPTIONS ) -output " ${OUTPUT_DIR} /pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
You can’t perform that action at this time.
0 commit comments