mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 08:19:11 +00:00
24 lines
757 B
YAML
24 lines
757 B
YAML
version: '3'
|
|
|
|
vars:
|
|
BIN_X32: x32-cli
|
|
|
|
tasks:
|
|
windows-amd64:
|
|
desc: Build the x32-cli project for Windows
|
|
cmds:
|
|
- GOOS=windows GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_windows_amd64.exe -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
|
|
internal: true
|
|
|
|
linux-amd64:
|
|
desc: Build the x32-cli project for Linux
|
|
cmds:
|
|
- GOOS=linux GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_linux_amd64 -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
|
|
internal: true
|
|
|
|
darwin-amd64:
|
|
desc: Build the x32-cli project for macOS
|
|
cmds:
|
|
- GOOS=darwin GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_darwin_amd64 -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
|
|
internal: true
|