mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +08:00
update .workflow/test.yml.
This commit is contained in:
parent
c9dc3b6e85
commit
e2af6f81d1
@ -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: []
|
||||
|
Loading…
Reference in New Issue
Block a user