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:
Luis Pater
2026-06-07 04:13:15 +08:00
parent 0ed85bb88b
commit bc58c21673
4 changed files with 43 additions and 7 deletions

View File

@@ -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