mirror of
https://gitee.com/openharmony/third_party_rust_link-cplusplus
synced 2024-11-26 17:10:38 +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
c11442233c
commit
e123d184c3
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -20,6 +20,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
rust: [nightly, beta, stable, 1.34.0]
|
rust: [nightly, beta, stable, 1.34.0]
|
||||||
os: [ubuntu, macos, windows]
|
os: [ubuntu, macos, windows]
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
@ -31,6 +32,7 @@ jobs:
|
|||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@clippy
|
- uses: dtolnay/rust-toolchain@clippy
|
||||||
@ -40,6 +42,7 @@ jobs:
|
|||||||
name: Outdated
|
name: Outdated
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/install@cargo-outdated
|
- uses: dtolnay/install@cargo-outdated
|
||||||
|
Loading…
Reference in New Issue
Block a user