summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnderByEndera <[email protected]>2020-12-30 16:36:54 +0800
committerEnderByEndera <[email protected]>2020-12-30 16:36:54 +0800
commitcfed3146542964ecc0a2a46d563a192d7b0548e6 (patch)
treec328e70977a7ac04a9046beabb6ad17fdb0e2fe6
parentccadde4aeffd7a65f5d6d056e29391ceaa9f8ba0 (diff)
1. Added .workflow document and build.yml to test gitee go workflow
-rw-r--r--.workflow/build.yml28
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