diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..aa0898a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: build + pull: if-not-exists + image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv + commands: + - chmod +x build.sh + - ./build.sh + - name: upload + image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos + settings: + secret_id: + from_secret: cos_secret_id + secret_key: + from_secret: cos_secret_key + bucket_url: + from_secret: cos_bucket_url + source: release/ + target: product/wslkd + strip_prefix: release/ diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..690b5c7 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release/wslkd_amd64.exe -trimpath -ldflags '-H windowsgui -s -w' wslkd.go +GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -o release/wslkd_arm64.exe -trimpath -ldflags '-H windowsgui -s -w' wslkd.go \ No newline at end of file