ci: 修复发布超时 — 增加 timeout-minutes 以及步骤级超时
测试构建 / 代码检查 (push) Has been cancelled
测试构建 / 单元测试和构建 (push) Has been cancelled
测试构建 / 构建验证 (push) Has been cancelled

This commit is contained in:
ZacharyZcR
2026-05-13 17:32:09 +08:00
parent b32ce5dec8
commit 46e50a021f
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -29,23 +29,27 @@ runs:
cache: true
- name: 安装 C 编译工具
timeout-minutes: 10
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get install -y gcc make mingw-w64 gcc-multilib g++-multilib
- name: 下载依赖
timeout-minutes: 5
shell: bash
run: |
go mod download
go mod verify
- name: 安装 UPX
timeout-minutes: 2
uses: crazy-max/ghaction-upx@v3
with:
install-only: true
- name: 使用 GoReleaser 构建
timeout-minutes: 60
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser