Skip to content

Commit ab4cd23

Browse files
twpaynevishvananda
authored andcommitted
add build on macOS test
netlink is Linux-only, but adding this test ensures that netlink builds without error on macOS, which helps catch missing build tags.
1 parent d6b03fd commit ab4cd23

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

+18
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,21 @@ jobs:
2424

2525
- name: Test
2626
run: sudo -E env PATH=$PATH go test -v ./ ./nl
27+
28+
build-macos:
29+
# netlink is Linux-only, but this ensures that netlink builds without error
30+
# on macOS, which helps catch missing build tags.
31+
runs-on: macos-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Set up Go
36+
uses: actions/setup-go@v2
37+
with:
38+
go-version: 1.17
39+
40+
- name: Build
41+
run: go build ./...
42+
43+
- name: Test
44+
run: go test ./...

0 commit comments

Comments
 (0)