Skip to content

Commit 2ba17b4

Browse files
committed
build on all three supported OSs
1 parent 4ae1193 commit 2ba17b4

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Go
22
on: [push]
33
jobs:
4-
build:
4+
build-linux:
55
name: Build
66
runs-on: ubuntu-latest
77
steps:
@@ -21,3 +21,43 @@ jobs:
2121
run: |
2222
go test ./...
2323
go build -v .
24+
build-windows:
25+
name: Build
26+
runs-on: windows-latest
27+
steps:
28+
- name: Set up Go 1.13
29+
uses: actions/setup-go@v1
30+
with:
31+
go-version: 1.13
32+
id: go
33+
34+
- name: Check out code into the Go module directory
35+
uses: actions/checkout@v1
36+
37+
- name: Verify dependencies
38+
run: go mod verify
39+
40+
- name: Build
41+
run: |
42+
go test ./...
43+
go build -v .
44+
build-macos:
45+
name: Build
46+
runs-on: macos-latest
47+
steps:
48+
- name: Set up Go 1.13
49+
uses: actions/setup-go@v1
50+
with:
51+
go-version: 1.13
52+
id: go
53+
54+
- name: Check out code into the Go module directory
55+
uses: actions/checkout@v1
56+
57+
- name: Verify dependencies
58+
run: go mod verify
59+
60+
- name: Build
61+
run: |
62+
go test ./...
63+
go build -v .

0 commit comments

Comments
 (0)