Upgrade build/test environment

Upgrading Linux build env to Ubuntu 24.04, Go 1.23
This commit is contained in:
Sebastian Zagrodzki
2024-09-08 18:32:06 +02:00
committed by GitHub
parent 2f9ed92cb8
commit 8c7a7eb841

View File

@@ -2,12 +2,12 @@ name: build-and-test
on: [pull_request, push, workflow_dispatch]
jobs:
linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.22
go-version: 1.23
- run: DIFF="$( find . -name '*.go' -print0 | xargs -0 gofmt -l )"; if [ -n "$DIFF" ]; then echo "Files not formatted, run gofmt:"; echo "$DIFF"; exit 1; fi
- run: sudo apt-get install libusb-1.0-0-dev
- run: go install golang.org/x/tools/cmd/cover@latest