Files
dypid/.gitea/workflows/build_tool.yaml
YGXB_net eb88f4b231
Some checks failed
构建上传工具 / build (push) Failing after 5m47s
部署开发环境 / build-and-deploy (push) Successful in 1m21s
ops(workflow): 添加开发环境部署配置并优化生产环境部署
2025-09-09 23:37:36 +08:00

32 lines
717 B
YAML

name: 构建上传工具
on: [ push ]
jobs:
build:
env:
RUNNER_TOOL_CACHE: /toolcache
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