mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-16 10:09:28 +02:00
Cross compile binaries
This commit is contained in:
parent
0939748829
commit
0ee53aaa4c
1 changed files with 11 additions and 0 deletions
11
.build.yml
11
.build.yml
|
@ -6,3 +6,14 @@ tasks:
|
|||
cd scotty
|
||||
go build -v .
|
||||
go test -v ./...
|
||||
- build: |
|
||||
cd scotty
|
||||
GOOS=windows GOARCH=amd64 go build -o bin/scotty.exe .
|
||||
GOOS=linux GOARCH=amd64 go build -o bin/scotty-linux .
|
||||
GOOS=darwin GOARCH=amd64 go build -o bin/scotty-mac-intel .
|
||||
GOOS=darwin GOARCH=arm64 go build -o bin/scotty-mac-arm .
|
||||
artifacts:
|
||||
- scotty/bin/scotty.exe
|
||||
- scotty/bin/scotty-linux
|
||||
- scotty/bin/scotty-mac-intel
|
||||
- scotty/bin/scotty-mac-arm
|
||||
|
|
Loading…
Add table
Reference in a new issue