Update go.yml

This commit is contained in:
thom2305 2025-04-25 18:37:43 -04:00 committed by GitHub
parent a2de0a1015
commit 18799fd300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,9 +45,15 @@ jobs:
- name: Build
run: |
GOOS=${{ runner.os == 'Windows' && 'windows' || runner.os == 'macOS' && 'darwin' || 'linux' }}
GOARCH=${{ matrix.os == 'macos-14' && 'arm64' || 'amd64' }}
go build -v -o "${{ matrix.bin_name }}" ./...
if [ "${{ runner.os }}" == "Windows" ]; then
$env:GOOS="windows"
$env:GOARCH="amd64"
go build -v -o "${{ matrix.bin_name }}" ./...
else
GOOS=${{ runner.os == 'macOS' && 'darwin' || 'linux' }} \
GOARCH=${{ matrix.os == 'macos-14' && 'arm64' || 'amd64' }} \
go build -v -o "${{ matrix.bin_name }}" ./...
fi
- name: Create release ZIP
run: |