mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2025-02-17 06:08:14 +00:00
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions jobs have started randomly stalling for that long, which is inconvenient because it ties up a chunk of my runner quota. It apepars to be very rare for a job to recover after stalling. It's better to time out quicker and retry on a different runner.
This commit is contained in:
parent
94296cf1b6
commit
30361cff0f
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
||||
name: latest Unicode
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'pull_request'
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
@ -38,6 +39,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
rust: [nightly, beta, stable]
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
@ -49,6 +51,7 @@ jobs:
|
||||
msrv:
|
||||
name: Rust 1.31.0
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@1.31.0
|
||||
@ -58,6 +61,7 @@ jobs:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'pull_request'
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@clippy
|
||||
@ -67,6 +71,7 @@ jobs:
|
||||
name: Outdated
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'pull_request'
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/install@cargo-outdated
|
||||
|
Loading…
x
Reference in New Issue
Block a user