Fix toolchain version

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

View file

@ -24,6 +24,7 @@ builds:
- with_tailscale
env:
- CGO_ENABLED=0
- GOTOOLCHAIN=local
targets:
- linux_386
- linux_amd64_v1
@ -62,6 +63,7 @@ builds:
<<: *template
env:
- CGO_ENABLED=1
- GOTOOLCHAIN=local
overrides:
- goos: android
goarch: arm

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:

2
go.mod
View file

@ -2,8 +2,6 @@ module github.com/sagernet/sing-box
go 1.23.1
toolchain go1.24.0
require (
github.com/caddyserver/certmagic v0.21.7
github.com/cloudflare/circl v1.6.0