undocker/.build.yml

31 lines
955 B
YAML
Raw Normal View History

2021-05-31 23:43:07 +03:00
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~motiejus/undocker
tasks:
- test: |
2021-05-31 23:43:45 +03:00
cd undocker
go test -cover ./...
2021-05-31 23:57:40 +03:00
- build-linux-amd64: |
2021-05-31 23:43:45 +03:00
cd undocker
2021-05-31 23:57:40 +03:00
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o undocker-linux-amd64
- build-linux-arm64: |
cd undocker
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o undocker-linux-arm64
- build-darwin-amd64: |
cd undocker
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o undocker-darwin-amd64
- build-darwin-arm64: |
cd undocker
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o undocker-darwin-arm64
- build-windows-amd64: |
cd undocker
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o undocker-windows-amd64.exe
2021-05-31 23:43:07 +03:00
artifacts:
2021-05-31 23:57:40 +03:00
- undocker/undocker-linux-amd64
- undocker/undocker-linux-arm64
- undocker/undocker-darwin-amd64
- undocker/undocker-darwin-arm64
- undocker/undocker-windows-amd64.exe