test os definition

This commit is contained in:
Gitea 2021-04-30 22:22:24 +08:00
parent 13b45100c1
commit ecf6d88606

View File

@ -3,9 +3,12 @@ workspace:
path: .
pipeline:
name: build_linux_amd64
build:
image: golang
environment:
GOOS: linux
GOARCH: amd64
# pull: true
commands:
- pwd
@ -15,3 +18,22 @@ pipeline:
- go mod init alidns
- go mod tidy
- go build alidns.go
- ls -al
pipeline:
name: build_windows_amd-64
build:
image: golang
environment:
GOOS: windows
GOARCH: amd64
# pull: true
commands:
- pwd
- ls
- go env -w GOPROXY=https://goproxy.io,direct
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/services/alidns
- go mod init alidns
- go mod tidy
- go build alidns.go
- ls -al