Skip to content

Commit deed988

Browse files
committed
ci: Add a timeout for all jobs
The Android jobs seem to occasionally get stuck. Add a timeout of 10 minutes for simple jobs and 25 minutes for more complex jobs, which should make sure that if anything gets stuck it will get stopped. (backport <#4164>) (cherry picked from commit e1fe3d8)
1 parent 7f0c8c5 commit deed988

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
style_check:
1919
name: Style check
2020
runs-on: ubuntu-24.04
21+
timeout-minutes: 10
2122
steps:
2223
- uses: actions/checkout@v4
2324
- name: Setup Rust toolchain
@@ -36,6 +37,7 @@ jobs:
3637
- toolchain: beta
3738
os: ubuntu-24.04
3839
runs-on: ${{ matrix.os }}
40+
timeout-minutes: 25
3941
env:
4042
TOOLCHAIN: ${{ matrix.toolchain }}
4143
steps:
@@ -73,6 +75,7 @@ jobs:
7375
- target: i686-pc-windows-msvc
7476
os: windows-2022
7577
runs-on: ${{ matrix.os }}
78+
timeout-minutes: 25
7679
env:
7780
TARGET: ${{ matrix.target }}
7881
steps:
@@ -123,6 +126,7 @@ jobs:
123126
# FIXME: It seems some items in `src/unix/mod.rs`
124127
# aren't defined on redox actually.
125128
# - x86_64-unknown-redox
129+
timeout-minutes: 25
126130
env:
127131
TARGET: ${{ matrix.target }}
128132
steps:
@@ -141,6 +145,7 @@ jobs:
141145
matrix:
142146
target:
143147
- x86_64-pc-solaris
148+
timeout-minutes: 25
144149
steps:
145150
- uses: actions/checkout@v4
146151
- name: test on Solaris
@@ -164,6 +169,7 @@ jobs:
164169
runs-on: ubuntu-24.04
165170
env:
166171
TOOLCHAIN: nightly
172+
timeout-minutes: 10
167173
steps:
168174
- uses: actions/checkout@v4
169175
- name: Setup Rust toolchain

0 commit comments

Comments
 (0)