mirror of
https://github.com/xiaoqidun/wslkd.git
synced 2024-11-24 02:16:45 +08:00
chore(编译脚本): 添加CI自动编译脚本
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
476779ebce
commit
95fa32b83e
24
.drone.yml
Normal file
24
.drone.yml
Normal file
@ -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/
|
2
build.sh
Normal file
2
build.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user