Skip to content

Commit

Permalink
chore(ci) specify 'timeout-minutes' on all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 6, 2024
1 parent d206dee commit fc8985d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-large.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
name: 'Unit'
#if: ${{ false }}
secrets: inherit
#timeout-minutes: see job-unit-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
valgrind:
name: 'Valgrind'
#if: ${{ false }}
#timeout-minutes: see job-valgrind-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -99,6 +101,7 @@ jobs:

analyzer:
name: 'Clang analyzer'
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -125,6 +128,7 @@ jobs:

codeql:
name: 'CodeQL analyzer'
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -140,6 +144,7 @@ jobs:
build:
name: 'Build'
#if: ${{ false }}
#timeout-minutes: see job-build-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
unit:
name: 'Unit'
#if: ${{ false }}
#timeout-minutes: see job-unit-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -133,6 +134,7 @@ jobs:
name: 'Coveralls'
needs: unit
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- name: Coveralls Finished
if: ${{ !env.ACT }}
Expand All @@ -145,6 +147,7 @@ jobs:
valgrind:
name: 'Valgrind'
#if: ${{ false }}
#timeout-minutes: see job-valgrind-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -209,6 +212,7 @@ jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- uses: actions/checkout@v3
- name: 'Setup cache - rustup toolchain'
Expand Down Expand Up @@ -246,6 +250,7 @@ jobs:
analyzer:
name: 'Clang analyzer'
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -280,6 +285,7 @@ jobs:

codeql:
name: 'CodeQL analyzer'
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -295,6 +301,7 @@ jobs:
build:
name: 'Build'
#if: ${{ false }}
#timeout-minutes: see job-build-tests.yml
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/job-build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
name: 'Build'
#if: ${{ false }}
runs-on: ${{ inputs.os }}
timeout-minutes: 45
steps:
- name: 'Setup Ubuntu deps - gcc'
if: ${{ !env.ACT && contains(inputs.os, 'ubuntu') && contains(inputs.cc, 'gcc') }}
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
setup:
name: "Setup release & runtime versions"
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
outputs:
wasmtime_ver: ${{ steps.assign-versions.outputs.wasmtime_ver }}
wasmer_ver: ${{ steps.assign-versions.outputs.wasmer_ver }}
Expand Down Expand Up @@ -98,6 +99,7 @@ jobs:
name: "Source release"
needs: setup
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- uses: actions/checkout@v3
- name: Build archive
Expand All @@ -112,6 +114,7 @@ jobs:
build-images:
name: "Build compilation images"
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
include:
Expand Down Expand Up @@ -160,6 +163,7 @@ jobs:
name: "Build Ubuntu 18.04 (bionic) binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -191,6 +195,7 @@ jobs:
name: "Build Ubuntu 20.04 (focal) binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -222,6 +227,7 @@ jobs:
name: "Build Ubuntu 22.04 (jammy) binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -253,6 +259,7 @@ jobs:
name: "Build ARM Ubuntu 22.04 (jammy) binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 150
steps:
- uses: actions/checkout@v3
- name: Setup QEMU
Expand Down Expand Up @@ -292,6 +299,7 @@ jobs:
name: "Build Centos 7 binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -323,6 +331,7 @@ jobs:
name: "Build Centos 8 binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -354,6 +363,7 @@ jobs:
name: "Build ArchLinux binary"
needs: [setup, build-images]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -385,6 +395,7 @@ jobs:
name: "Build macOS binary"
needs: [setup, build-images]
runs-on: macos-latest
timeout-minutes: 120
env:
WASMTIME_VER: ${{ needs.setup.outputs.wasmtime_ver }}
WASMER_VER: ${{ needs.setup.outputs.wasmer_ver }}
Expand Down Expand Up @@ -415,6 +426,7 @@ jobs:
name: "Upload release artifacts"
needs: [setup, source-release, binary-ubuntu-bionic, binary-ubuntu-focal, binary-ubuntu-jammy, binary-ubuntu-jammy-arm, binary-centos7, binary-centos8, binary-arch, binary-macos]
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- name: Retrieve sibling release artifacts
uses: actions/download-artifact@v3
Expand Down

0 comments on commit fc8985d

Please sign in to comment.