Skip to content

Commit 46e50a0

Browse files
committed
ci: 修复发布超时 — 增加 timeout-minutes 以及步骤级超时
1 parent b32ce5d commit 46e50a0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/actions/build-release/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,27 @@ runs:
2929
cache: true
3030

3131
- name: 安装 C 编译工具
32+
timeout-minutes: 10
3233
shell: bash
3334
run: |
3435
sudo apt-get update -qq
3536
sudo apt-get install -y gcc make mingw-w64 gcc-multilib g++-multilib
3637
3738
- name: 下载依赖
39+
timeout-minutes: 5
3840
shell: bash
3941
run: |
4042
go mod download
4143
go mod verify
4244
4345
- name: 安装 UPX
46+
timeout-minutes: 2
4447
uses: crazy-max/ghaction-upx@v3
4548
with:
4649
install-only: true
4750

4851
- name: 使用 GoReleaser 构建
52+
timeout-minutes: 60
4953
uses: goreleaser/goreleaser-action@v6
5054
with:
5155
distribution: goreleaser

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525
jobs:
2626
release:
2727
runs-on: ubuntu-latest
28-
timeout-minutes: 45
28+
timeout-minutes: 90
2929

3030
steps:
3131
- name: 检出代码

0 commit comments

Comments
 (0)