Skip to content

Commit

Permalink
支持跨平台编译
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Oct 16, 2024
1 parent c648dc0 commit 19fae94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
include:
- GOOS: linux
GOARCH: amd64
output_name: bestipTestVIP_linux_amd64
output_name: bestipTest_linux_amd64
- GOOS: windows
GOARCH: amd64
output_name: bestipTestVIP.exe
output_name: bestipTest.exe
- GOOS: darwin
GOARCH: amd64
output_name: bestipTestVIP_darwin_amd64
output_name: bestipTest_darwin_amd64
- GOOS: darwin
GOARCH: arm64
output_name: bestipTestVIP_darwin_arm64
output_name: bestipTest_darwin_arm64

steps:
- name: Checkout code
Expand Down Expand Up @@ -98,8 +98,8 @@ jobs:
Changes in this release:
${{ steps.commit_message.outputs.commit_message }}" \
--draft=false \
./artifacts/bestipTestVIP_linux_amd64/bestipTestVIP_linux_amd64 \
./artifacts/bestipTestVIP.exe/bestipTestVIP.exe \
./artifacts/bestipTestVIP_darwin_amd64/bestipTestVIP_darwin_amd64 \
./artifacts/bestipTestVIP_darwin_arm64/bestipTestVIP_darwin_arm64
./artifacts/bestipTest_linux_amd64/bestipTest_linux_amd64 \
./artifacts/bestipTest.exe/bestipTest.exe \
./artifacts/bestipTest_darwin_amd64/bestipTest_darwin_amd64 \
./artifacts/bestipTest_darwin_arm64/bestipTest_darwin_arm64
shell: bash
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const (
)

var (
// requestURL = "st.notime.icu/cdn-cgi/trace" // 请求trace URL,自建的貌似会造成数据中心识别错误
requestURL = "speed.cloudflare.com/cdn-cgi/trace" // 请求trace URL
locationsJsonUrl = "https://speed.cloudflare.com/locations" // location.json下载 URL

Expand Down

0 comments on commit 19fae94

Please sign in to comment.