Merge pull request 'build: use go toolchain' (#360) from build/use-go-toolchain into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/360
This commit is contained in:
commit
b8ccb30612
2 changed files with 13 additions and 1 deletions
|
@ -44,6 +44,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: validate go version
|
||||||
|
run: |
|
||||||
|
set -ex
|
||||||
|
toolchain=$(grep -oP '(?<=toolchain ).+' go.mod)
|
||||||
|
version=$(go version | cut -d' ' -f3)
|
||||||
|
if [ "$toolchain" != "$version" ]; then
|
||||||
|
echo "go version mismatch: $toolchain <> $version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- run: make vet
|
- run: make vet
|
||||||
|
|
||||||
- run: make build
|
- run: make build
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -1,6 +1,8 @@
|
||||||
module gitea.com/gitea/act_runner
|
module gitea.com/gitea/act_runner
|
||||||
|
|
||||||
go 1.23.3
|
go 1.23
|
||||||
|
|
||||||
|
toolchain go1.23.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
code.gitea.io/actions-proto-go v0.4.0
|
code.gitea.io/actions-proto-go v0.4.0
|
||||||
|
|
Loading…
Reference in a new issue