mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-03 20:11:14 +02:00
Update go.yml
This commit is contained in:
parent
a2de0a1015
commit
18799fd300
12
.github/workflows/go.yml
vendored
12
.github/workflows/go.yml
vendored
@ -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: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user