From 95fa32b83ea5dc0397dd9b1091038b182242bc92 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 22 Nov 2022 14:55:34 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E7=BC=96=E8=AF=91=E8=84=9A=E6=9C=AC):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0CI=E8=87=AA=E5=8A=A8=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 24 ++++++++++++++++++++++++ build.sh | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .drone.yml create mode 100644 build.sh 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