feat(编译脚本): 添加自动构建脚本

This commit is contained in:
2026-01-22 15:07:06 +08:00
parent 7a5f6d9511
commit 10319914ec
2 changed files with 29 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
steps:
- name: checkout
uses: actions/checkout@v6
- name: generate
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/build:latest
with:
args: -f build.sh -i . -o release/probe
- name: docker goenv
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
env:
GIT_SERVER: ${{ secrets.git_server }}
GIT_USER: ${{ secrets.git_user }}
GIT_TOKEN: ${{ secrets.git_token }}
with:
args: bash build.sh
- name: upload to cos
uses: xiaoqidun/gocos@main
with:
secret_id: ${{ secrets.cos_secret_id }}
secret_key: ${{ secrets.cos_secret_key }}
bucket_url: ${{ secrets.cos_bucket_url }}
source_path: release
target_path: product/probe
strip_prefix: release
Vendored
+1
View File
@@ -1,5 +1,6 @@
.idea/
.vscode/
.devcontainer/
release/
*.exe
*~