mirror of
https://github.com/SagerNet/sing-geosite.git
synced 2026-06-22 04:44:17 +08:00
Upgrade to go1.20
This commit is contained in:
parent
583341b9e7
commit
7df3e3f752
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
go-version: '1.20'
|
||||
- name: Build geosite
|
||||
id: build
|
||||
env:
|
||||
|
||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
go-version: '1.20'
|
||||
- name: Build geosite
|
||||
id: build
|
||||
run: |
|
||||
|
||||
4
go.mod
4
go.mod
@ -1,11 +1,12 @@
|
||||
module sing-geosite
|
||||
|
||||
go 1.18
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/google/go-github/v45 v45.2.0
|
||||
github.com/sagernet/sing v0.2.17
|
||||
github.com/sagernet/sing-box v1.6.2
|
||||
github.com/sethvargo/go-githubactions v1.1.0
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/v2fly/v2ray-core/v5 v5.11.0
|
||||
google.golang.org/protobuf v1.31.0
|
||||
@ -17,6 +18,7 @@ require (
|
||||
github.com/google/go-querystring v1.1.0 // indirect
|
||||
github.com/miekg/dns v1.1.56 // indirect
|
||||
github.com/sagernet/sing-dns v0.1.10 // indirect
|
||||
github.com/sethvargo/go-envconfig v0.8.0 // indirect
|
||||
golang.org/x/crypto v0.14.0 // indirect
|
||||
golang.org/x/mod v0.13.0 // indirect
|
||||
golang.org/x/net v0.17.0 // indirect
|
||||
|
||||
4
go.sum
4
go.sum
@ -23,6 +23,10 @@ github.com/sagernet/sing-box v1.6.2 h1:jctKwzwzJzWm0p7S3MUMmk74hDifrWt3nUxEiUJve
|
||||
github.com/sagernet/sing-box v1.6.2/go.mod h1:BBtCyMz5MzRSB954AUvtPN5Wfajf1B4zMWofkNxNNRo=
|
||||
github.com/sagernet/sing-dns v0.1.10 h1:iIU7nRBlUYj+fF2TaktGIvRiTFFrHwSMedLQsvlTZCI=
|
||||
github.com/sagernet/sing-dns v0.1.10/go.mod h1:vtUimtf7Nq9EdvD5WTpfCr69KL1M7bcgOVKiYBiAY/c=
|
||||
github.com/sethvargo/go-envconfig v0.8.0 h1:AcmdAewSFAc7pQ1Ghz+vhZkilUtxX559QlDuLLiSkdI=
|
||||
github.com/sethvargo/go-envconfig v0.8.0/go.mod h1:Iz1Gy1Sf3T64TQlJSvee81qDhf7YIlt8GMUX6yyNFs0=
|
||||
github.com/sethvargo/go-githubactions v1.1.0 h1:mg03w+b+/s5SMS298/2G6tHv8P0w0VhUFaqL1THIqzY=
|
||||
github.com/sethvargo/go-githubactions v1.1.0/go.mod h1:qIboSF7yq2Qnaw2WXDsqCReM0Lo1gU4QXUWmhBC3pxE=
|
||||
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
|
||||
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
|
||||
3
main.go
3
main.go
@ -14,6 +14,7 @@ import (
|
||||
"github.com/sagernet/sing-box/common/geosite"
|
||||
"github.com/sagernet/sing/common"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
"github.com/sethvargo/go-githubactions"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/v2fly/v2ray-core/v5/app/router/routercommon"
|
||||
"google.golang.org/protobuf/proto"
|
||||
@ -185,7 +186,7 @@ func generate(release *github.RepositoryRelease, output string) error {
|
||||
}
|
||||
|
||||
func setActionOutput(name string, content string) {
|
||||
os.Stdout.WriteString("::set-output name=" + name + "::" + content + "\n")
|
||||
githubactions.SetOutput(name, content)
|
||||
}
|
||||
|
||||
func release(source string, destination string, output string) error {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user