nl_linux: align message length before parsing. #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: Kernel Modules | |
run: ./.github/scripts/modprobe.sh | |
shell: bash | |
- name: Test | |
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 ./... |