upgrade go version to 1.25.5 and to build yq on ppc64le

This commit is contained in:
Agnes-George1 2025-12-10 00:54:33 +05:30
parent d2d657eacc
commit 4118885eee
4 changed files with 10 additions and 7 deletions

View File

@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.20'
go-version: '1.25.5'
id: go
- name: Check out code into the Go module directory

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-go@v5
with:
go-version: '^1.20'
go-version: '1.25.5'
check-latest: true
- name: Compile man page markup
id: gen-man-page-md

4
go.mod
View File

@ -39,6 +39,4 @@ require (
golang.org/x/tools v0.38.0 // indirect
)
go 1.24.0
toolchain go1.24.1
go 1.25.5

View File

@ -1,5 +1,10 @@
#!/bin/sh
set -ex
go mod download golang.org/x/tools@latest
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.5
curl -sSfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.22.5
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.6.1
arch="$(uname -m)"
if [ "$arch" = "ppc64le" ]; then
go install github.com/securego/gosec/v2/cmd/gosec@latest
else
curl -sSfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s
fi