Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci bump #1025

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Ci bump #1025

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,42 @@ on:
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@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: ${{ matrix.go-version }}

- name: Kernel Modules
run: ./.github/scripts/modprobe.sh
shell: bash

- name: Build
run: go build ./...

- name: Test
run: sudo -E env PATH=$PATH go test -v ./ ./nl
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@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.17

- name: Build
run: go build ./...

Expand Down
Loading