mirror of
https://github.com/vishvananda/netlink
synced 2024-12-17 20:24:44 +00:00
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.
This commit is contained in:
parent
d6b03fdeb8
commit
ab4cd23987
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -24,3 +24,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: sudo -E env PATH=$PATH go test -v ./ ./nl
|
run: sudo -E env PATH=$PATH go test -v ./ ./nl
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
# netlink is Linux-only, but this ensures that netlink builds without error
|
||||||
|
# on macOS, which helps catch missing build tags.
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.17
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user