File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+
11
+ build :
12
+ name : Build
13
+ strategy :
14
+ matrix :
15
+ go-os : [linux, windows]
16
+ go-arch : [386, amd64, arm, arm64]
17
+ exclude :
18
+ - go-os : windows
19
+ go-arch : arm64
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Set up Go 1.x
23
+ uses : actions/setup-go@v2
24
+ with :
25
+ go-version : ^1.14
26
+ id : go
27
+ - name : Check out code into the Go module directory
28
+ uses : actions/checkout@v2
29
+ - name : Get dependencies
30
+ run : |
31
+ go get -v -t -d ./...
32
+ if [ -f Gopkg.toml ]; then
33
+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
34
+ dep ensure
35
+ fi
36
+ - name : Build
37
+ env :
38
+ CGO_ENABLED : 0
39
+ GOOS : ${{ matrix.go-os }}
40
+ GOARCH : ${{ matrix.go-arch }}
41
+ run : go build -a -installsuffix cgo -o mqtt-executor-${{ matrix.go-os }}-${{ matrix.go-arch }} -v ./cmd/mqtt-executor/
42
+ - uses : actions/upload-artifact@v2
43
+ with :
44
+ name : mqtt-executor-${{ matrix.go-os }}-${{ matrix.go-arch }}
45
+ path : mqtt-executor-${{ matrix.go-os }}-${{ matrix.go-arch }}
You can’t perform that action at this time.
0 commit comments