Skip to content

Ci bump

Ci bump #664

Workflow file for this run

name: Main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-24.04]
go-version: [1.17.x, 1.22.x, 1.23.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Kernel Modules
run: ./.github/scripts/modprobe.sh
shell: bash
- name: Build
run: go build ./...
- name: Test
run: go test -exec 'sudo --preserve-env=CI,PATH -n' -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@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: Build
run: go build ./...
- name: Test
run: go test ./...