mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
update to Go 1.24.0 and test with it on CI as well
This commit is contained in:
committed by
Paul Scheduikat
parent
2adfc43326
commit
3936ebfe5d
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.23.x]
|
||||
go-version: [1.23.x, 1.24.x]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
@@ -53,22 +53,21 @@ jobs:
|
||||
# Static checks from this point forward. Only run on one Go version and on
|
||||
# linux, since it's the fastest platform, and the tools behave the same.
|
||||
- name: Test third-party project builds
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
|
||||
run: |
|
||||
go install
|
||||
./scripts/check-third-party.sh
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
|
||||
run: ./scripts/crlf-test.sh
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
|
||||
run: diff <(echo -n) <(gofmt -d .)
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
|
||||
run: go vet ./...
|
||||
# TODO: staticcheck temporarily disabled as it was built with go1.23.4
|
||||
# - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
|
||||
# uses: dominikh/staticcheck-action@v1
|
||||
# with:
|
||||
# version: "2024.1.1"
|
||||
# install-go: false
|
||||
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
|
||||
uses: dominikh/staticcheck-action@v1
|
||||
with:
|
||||
version: "2025.1"
|
||||
install-go: false
|
||||
|
||||
# We don't care about GOARCH=386 particularly, hence -short,
|
||||
# but it helps ensure we support 32-bit hosts and targets well.
|
||||
@@ -82,6 +81,6 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.23.x
|
||||
go-version: 1.24.x
|
||||
cache: false
|
||||
- run: go test -short ./...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by scripts/gen_go_std_tables.go; DO NOT EDIT.
|
||||
|
||||
// Generated from Go versions [go1.23.6 go1.24rc3].
|
||||
// Generated from Go versions [go1.23.6 go1.24.0].
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"text/template"
|
||||
)
|
||||
|
||||
var goVersions = []string{"go1.23.6", "go1.24rc3"}
|
||||
var goVersions = []string{"go1.23.6", "go1.24.0"}
|
||||
|
||||
var tmplTables = template.Must(template.New("").Parse(`
|
||||
// Code generated by scripts/gen_go_std_tables.go; DO NOT EDIT.
|
||||
|
||||
Reference in New Issue
Block a user