diff options
| author | EnderByEndera <[email protected]> | 2020-12-30 16:36:54 +0800 |
|---|---|---|
| committer | EnderByEndera <[email protected]> | 2020-12-30 16:36:54 +0800 |
| commit | cfed3146542964ecc0a2a46d563a192d7b0548e6 (patch) | |
| tree | c328e70977a7ac04a9046beabb6ad17fdb0e2fe6 | |
| parent | ccadde4aeffd7a65f5d6d056e29391ceaa9f8ba0 (diff) | |
1. Added .workflow document and build.yml to test gitee go workflow
| -rw-r--r-- | .workflow/build.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.workflow/build.yml b/.workflow/build.yml new file mode 100644 index 0000000..9dc96af --- /dev/null +++ b/.workflow/build.yml @@ -0,0 +1,28 @@ +name: commdetection-build +displayName: 'Golang command-detection build' +triggers: + push: + - matchType: PRECISE + branch: master +commitMessage: '' +stages: + - stage: + name: commdetection-stage + displayName: 'commdetection Build stage' + failFast: false + steps: + - step: golangbuild@1 + name: build-step + displayName: 'Build Step' + inputs: + golangVersion: 1.15 + goals: | + mkdir bin + GOOS=linux ARCH=amd64 go build -o bin/commdetection.amd64 commdetection + chmod +X bin/commdetection.amd64 + ./bin/commdetection.amd64 + uploadArtifact: true + uploadArtifactOptions: + artifactPath: '/bin' + artifactRepository: 'default' + artifactName: 'cli-build'
\ No newline at end of file |
