update .workflow/test.yml.

This commit is contained in:
gouguoyin 2022-04-15 06:42:56 +00:00 committed by Gitee
parent c9dc3b6e85
commit e2af6f81d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -11,29 +11,18 @@ triggers:
- v2
- develop
stages:
- name: stage-2f6a5b06
displayName: 未命名
- name: golang-build-stage
displayName: 'Golang Stage'
strategy: naturally
trigger: auto
executor: []
steps:
- step: build@golang
name: build_golang
- step: golangbuild@1
name: olang-build
displayName: Golang 构建
golangVersion: '1.16'
commands:
- mkdir output
- GOOS=linux GOARCH=amd64 go build -o output/main.amd64 main.go
- GOOS=linux GOARCH=386 go build -o output/main.linux32 main.go
- GOOS=windows GOARCH=amd64 go build -o output/main.win64.exe main.go
- GOOS=windows GOARCH=386 go build -o output/main.win32.exe main.go
- GOOS=darwin GOARCH=amd64 go build -o output/main.darwin main.go
- chmod +X output/main.linux32
- ./output/main.linux32
artifacts:
- name: BUILD_ARTIFACT
path:
- ./output
- echo '执行任务'
permissions:
- role: admin
members: []