mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
add timeouts to CI jobs (#7453)
# Objective - Avoid hitting the 6 hours default timeout - Waiting for 6 hours for a job to fail is wasteful and slow down CI for other PRs ## Solution - Put shorter timeouts on all jobs
This commit is contained in:
parent
f3b8ff6549
commit
69fc8c6b70
2 changed files with 12 additions and 0 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -17,6 +17,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
@ -41,6 +42,7 @@ jobs:
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
@ -96,6 +98,7 @@ jobs:
|
||||||
|
|
||||||
check-compiles:
|
check-compiles:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
needs: ci
|
needs: ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -122,6 +125,7 @@ jobs:
|
||||||
|
|
||||||
build-wasm:
|
build-wasm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -142,6 +146,7 @@ jobs:
|
||||||
|
|
||||||
markdownlint:
|
markdownlint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
needs: check-missing-examples-in-docs
|
needs: check-missing-examples-in-docs
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
|
@ -216,6 +221,7 @@ jobs:
|
||||||
|
|
||||||
check-doc:
|
check-doc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
@ -247,6 +253,7 @@ jobs:
|
||||||
|
|
||||||
check-missing-examples-in-docs:
|
check-missing-examples-in-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: check for missing metadata
|
- name: check for missing metadata
|
||||||
|
@ -279,6 +286,7 @@ jobs:
|
||||||
|
|
||||||
check-unused-dependencies:
|
check-unused-dependencies:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
@ -302,6 +310,7 @@ jobs:
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
3
.github/workflows/validation-jobs.yml
vendored
3
.github/workflows/validation-jobs.yml
vendored
|
@ -13,6 +13,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-install-on-iOS:
|
build-and-install-on-iOS:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ jobs:
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -147,6 +149,7 @@ jobs:
|
||||||
path: .github/start-wasm-example/screenshot-*.png
|
path: .github/start-wasm-example/screenshot-*.png
|
||||||
|
|
||||||
build-without-default-features:
|
build-without-default-features:
|
||||||
|
timeout-minutes: 30
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
crate: [bevy_ecs, bevy_reflect, bevy]
|
crate: [bevy_ecs, bevy_reflect, bevy]
|
||||||
|
|
Loading…
Reference in a new issue