File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 11on : [push, pull_request]
22name : Sanity
3+
4+ env :
5+ GO_VERSION : ' 1.17.x'
6+
37jobs :
48 build :
59 name : " Run go sanity tools"
812 - uses : actions/checkout@v2
913 - uses : actions/setup-go@v2
1014 with :
11- go-version : 1.17.x
15+ go-version : ${{ env.GO_VERSION }}
1216 - name : Install golint
1317 run : go get -u golang.org/x/lint/golint
1418 - name : Lint
1923 run : make vet
2024 - name : Test
2125 run : make test
26+
27+
28+ # Make sure binaries compile on multiple platforms.
29+ crossbuild :
30+ name : Build/Crossbuild Binaries
31+ runs-on : ubuntu-20.04
32+ strategy :
33+ fail-fast : false
34+ matrix :
35+ include :
36+ - goos : linux
37+ goarch : amd64
38+ - goos : windows
39+ goarch : amd64
40+
41+ steps :
42+ - uses : actions/checkout@v2
43+ - uses : actions/setup-go@v2
44+ with :
45+ go-version : ${{ env.GO_VERSION }}
46+ - name : Build
47+ env :
48+ GOOS : ${{matrix.goos}}
49+ GOARCH : ${{matrix.goarch}}
50+ run : |
51+ env | grep ^GO
52+ make
You can’t perform that action at this time.
0 commit comments