Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 804a0bf

Browse files
committed
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.
1 parent 834606d commit 804a0bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
rust: [nightly, beta, stable, 1.59.0]
22+
timeout-minutes: 45
2223
steps:
2324
- uses: actions/checkout@v3
2425
- uses: dtolnay/rust-toolchain@master
@@ -31,6 +32,7 @@ jobs:
3132
name: Clippy
3233
runs-on: ubuntu-latest
3334
if: github.event_name != 'pull_request'
35+
timeout-minutes: 45
3436
steps:
3537
- uses: actions/checkout@v3
3638
- uses: dtolnay/rust-toolchain@clippy
@@ -40,6 +42,7 @@ jobs:
4042
name: Outdated
4143
runs-on: ubuntu-latest
4244
if: github.event_name != 'pull_request'
45+
timeout-minutes: 45
4346
steps:
4447
- uses: actions/checkout@v3
4548
- uses: dtolnay/install@cargo-outdated

0 commit comments

Comments
 (0)