mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-27 18:14:17 +08:00
chore(build): update dependencies, enhance cross-compilation, and refactor workflows
- Updated `golang.org/x/sys` to v0.38.0 in `go.mod` and replaced `syscall` with `windows` package for memory allocation in `loader_windows.go`. - Improved cross-compilation in `.goreleaser.yml` using Zig-based toolchains for better platform support. - Changed GitHub Actions workflow to use macOS runners and added Zig toolchain setup.
This commit is contained in:
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
@@ -11,7 +11,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -25,6 +25,9 @@ jobs:
|
||||
with:
|
||||
go-version: '>=1.26.0'
|
||||
cache: true
|
||||
- uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.16.0
|
||||
- name: Generate Build Metadata
|
||||
run: |
|
||||
echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user