mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
ci: 修复发布超时 — 增加 timeout-minutes 以及步骤级超时
This commit is contained in:
@@ -29,23 +29,27 @@ runs:
|
|||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: 安装 C 编译工具
|
- name: 安装 C 编译工具
|
||||||
|
timeout-minutes: 10
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -y gcc make mingw-w64 gcc-multilib g++-multilib
|
sudo apt-get install -y gcc make mingw-w64 gcc-multilib g++-multilib
|
||||||
|
|
||||||
- name: 下载依赖
|
- name: 下载依赖
|
||||||
|
timeout-minutes: 5
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
go mod download
|
go mod download
|
||||||
go mod verify
|
go mod verify
|
||||||
|
|
||||||
- name: 安装 UPX
|
- name: 安装 UPX
|
||||||
|
timeout-minutes: 2
|
||||||
uses: crazy-max/ghaction-upx@v3
|
uses: crazy-max/ghaction-upx@v3
|
||||||
with:
|
with:
|
||||||
install-only: true
|
install-only: true
|
||||||
|
|
||||||
- name: 使用 GoReleaser 构建
|
- name: 使用 GoReleaser 构建
|
||||||
|
timeout-minutes: 60
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 90
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
|
|||||||
Reference in New Issue
Block a user