diff --git a/.workflow/test.yml b/.workflow/test.yml index 48e856e..032d092 100644 --- a/.workflow/test.yml +++ b/.workflow/test.yml @@ -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: []