Fix networking structures after version bump #3147
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: vHive build tests | |
on: | |
push: | |
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ] | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
pull_request: | |
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ] | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
workflow_dispatch: | |
env: | |
GOOS: linux | |
GO111MODULE: on | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go: ['1.21', '1.22'] | |
# Build all variants regardless of failures | |
fail-fast: false | |
name: Build and check code quality | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
# to add commit DCO checks later | |
fetch-depth: 21 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check code | |
uses: golangci/[email protected] | |
with: | |
args: --timeout 5m | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Build | |
run: go build -race -v -a ./... |