build(tool): 添加Windows上传工具构建工作流
Some checks failed
构建上传工具 / build (push) Failing after 5m58s
构建Docker镜像 / build-and-deploy (push) Successful in 1m31s

This commit is contained in:
2025-09-09 23:29:23 +08:00
parent 88aee26105
commit cf4287ddd9

View File

@@ -0,0 +1,29 @@
name: 构建上传工具
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 安装Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: 构建上传工具
run: |
go env -w CGO_ENABLED=0 \
&& go env -w GOARCH=amd64 \
&& go env -w GOOS=windows \
&& go mod tidy \
&& cd ./tool
&& go build -o 上传工具.exe
- name: 上传构建文件
uses: actions/upload-artifact@v4
with:
name: 上传工具
path: tool/上传工具.exe