Skip to content

Commit 6276c9b

Browse files
authored
Merge pull request #15 from ansg191/workflow-platforms
Adds platforms to Go Workflow
2 parents 737fb8a + c58a86d commit 6276c9b

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

.github/workflows/go.yml

+30-23
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,40 @@ on:
1111
jobs:
1212

1313
build:
14-
name: linux build
15-
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os:
18+
- ubuntu-latest
19+
- windows-latest
20+
- macos-latest
21+
runs-on: ${{ matrix.os }}
22+
1623
steps:
17-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v3
1825

19-
- name: Set up Go
20-
uses: actions/setup-go@v3
21-
with:
22-
go-version: 1.18
26+
- name: Set up Go
27+
uses: actions/setup-go@v3
28+
with:
29+
go-version: 1.18
2330

24-
- name: Setup protoc
25-
uses: arduino/[email protected]
31+
- name: Setup protoc
32+
uses: arduino/[email protected]
2633

27-
- name: Download Dependencies
28-
run: |
29-
go mod download
30-
go install google.golang.org/protobuf/cmd/[email protected]
31-
go install google.golang.org/grpc/cmd/[email protected]
32-
go install github.com/golang/mock/[email protected]
34+
- name: Download Dependencies
35+
run: |
36+
go mod download
37+
go install google.golang.org/protobuf/cmd/[email protected]
38+
go install google.golang.org/grpc/cmd/[email protected]
39+
go install github.com/golang/mock/[email protected]
3340
34-
- name: Generate
35-
run: go generate ./...
41+
- name: Generate
42+
run: go generate ./...
3643

37-
- name: Build
38-
run: |
39-
go build golang.anshulg.com/popcorntime/go_encoder/cmd/worker
40-
go build golang.anshulg.com/popcorntime/go_encoder/cmd/manager
44+
- name: Tests
45+
run: go test ./...
4146

42-
- name: Tests
43-
run: go test ./...
47+
- name: Build
48+
run: |
49+
go build golang.anshulg.com/popcorntime/go_encoder/cmd/worker
50+
go build golang.anshulg.com/popcorntime/go_encoder/cmd/manager

0 commit comments

Comments
 (0)