Skip to content

Commit

Permalink
ci: Add a timeout for all jobs
Browse files Browse the repository at this point in the history
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 <rust-lang#4164>)
(cherry picked from commit e1fe3d8)
  • Loading branch information
tgross35 committed Nov 28, 2024
1 parent 7f0c8c5 commit deed988
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
style_check:
name: Style check
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand All @@ -36,6 +37,7 @@ jobs:
- toolchain: beta
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
timeout-minutes: 25
env:
TOOLCHAIN: ${{ matrix.toolchain }}
steps:
Expand Down Expand Up @@ -73,6 +75,7 @@ jobs:
- target: i686-pc-windows-msvc
os: windows-2022
runs-on: ${{ matrix.os }}
timeout-minutes: 25
env:
TARGET: ${{ matrix.target }}
steps:
Expand Down Expand Up @@ -123,6 +126,7 @@ jobs:
# FIXME: It seems some items in `src/unix/mod.rs`
# aren't defined on redox actually.
# - x86_64-unknown-redox
timeout-minutes: 25
env:
TARGET: ${{ matrix.target }}
steps:
Expand All @@ -141,6 +145,7 @@ jobs:
matrix:
target:
- x86_64-pc-solaris
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: test on Solaris
Expand All @@ -164,6 +169,7 @@ jobs:
runs-on: ubuntu-24.04
env:
TOOLCHAIN: nightly
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand Down

0 comments on commit deed988

Please sign in to comment.