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 20 minutes for more complex jobs, which
should make sure that if anything gets stuck it will get stopped.
  • Loading branch information
tgross35 committed Nov 27, 2024
1 parent 8075133 commit 5703aa0
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 @@ -17,6 +17,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 @@ -35,6 +36,7 @@ jobs:
- toolchain: beta
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
timeout-minutes: 25
env:
TOOLCHAIN: ${{ matrix.toolchain }}
steps:
Expand Down Expand Up @@ -72,6 +74,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 @@ -122,6 +125,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 @@ -140,6 +144,7 @@ jobs:
matrix:
target:
- x86_64-pc-solaris
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: test on Solaris
Expand All @@ -163,6 +168,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 5703aa0

Please sign in to comment.