Fix toolchain version

This commit is contained in:
世界 2025-02-18 19:13:25 +08:00
parent 3d37d37d38
commit 51b9d7fce1
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 7 additions and 4 deletions

View file

@ -18,14 +18,17 @@ PREFIX ?= $(shell go env GOPATH)
.PHONY: test release docs build
build:
export GOTOOLCHAIN=local && \
go build $(MAIN_PARAMS) $(MAIN)
ci_build_go120:
go build $(PARAMS) $(MAIN)
export GOTOOLCHAIN=local && \
go build $(PARAMS) $(MAIN) && \
go build $(PARAMS) -tags "$(TAGS_GO120)" $(MAIN)
ci_build:
go build $(PARAMS) $(MAIN)
export GOTOOLCHAIN=local && \
go build $(PARAMS) $(MAIN) && \
go build $(MAIN_PARAMS) $(MAIN)
generate_completions: