From d6b6cebaf162f161b3ac16846379cfa0c6d96003 Mon Sep 17 00:00:00 2001 From: Julie Schwartz Date: Mon, 19 Feb 2024 16:06:17 +1300 Subject: [PATCH] GitHub CI: Shorten the timeout for jobs --- .github/workflows/build-and-test-macos.yml | 5 +++++ .github/workflows/build-and-test-ubuntu.yml | 5 +++++ .github/workflows/ci.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/build-and-test-macos.yml b/.github/workflows/build-and-test-macos.yml index 1c6f59f2..719411c2 100644 --- a/.github/workflows/build-and-test-macos.yml +++ b/.github/workflows/build-and-test-macos.yml @@ -20,6 +20,7 @@ jobs: build-macOS: name: "Build: ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - name: Checkout submodules @@ -120,6 +121,7 @@ jobs: test-macOS: name: "Test ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 240 needs: build-macos steps: - uses: actions/checkout@v4 @@ -187,6 +189,7 @@ jobs: test-toooba-macOS: name: "Test Toooba ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 60 if: ${{ inputs.os != 'macos-13' }} needs: build-macos steps: @@ -265,6 +268,7 @@ jobs: test-contrib-macOS: name: "Test bsc-contrib ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 needs: build-macos steps: - uses: actions/checkout@v4 @@ -341,6 +345,7 @@ jobs: test-bdw-macOS: name: "Test bdw ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 needs: build-macos steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/build-and-test-ubuntu.yml b/.github/workflows/build-and-test-ubuntu.yml index 91ad6433..dac5fe30 100644 --- a/.github/workflows/build-and-test-ubuntu.yml +++ b/.github/workflows/build-and-test-ubuntu.yml @@ -20,6 +20,7 @@ jobs: build-ubuntu: name: "Build: ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - name: Checkout submodules @@ -104,6 +105,7 @@ jobs: test-ubuntu: name: "Test ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 120 needs: build-ubuntu steps: - uses: actions/checkout@v4 @@ -170,6 +172,7 @@ jobs: test-toooba-ubuntu: name: "Test Toooba ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 needs: build-ubuntu steps: - uses: actions/checkout@v4 @@ -253,6 +256,7 @@ jobs: test-contrib-ubuntu: name: "Test bsc-contrib ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 needs: build-ubuntu steps: - uses: actions/checkout@v4 @@ -334,6 +338,7 @@ jobs: test-bdw-ubuntu: name: "Test bdw ${{ inputs.os }} ghc-${{ inputs.ghc_version }}" runs-on: ${{ inputs.os }} + timeout-minutes: 30 needs: build-ubuntu steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8be2b5d9..72279154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ jobs: build-check-src: name: "Check: code cleanliness" runs-on: ubuntu-20.04 + timeout-minutes: 15 steps: - uses: actions/checkout@v4 - name: Check tabs and whitespace @@ -16,6 +17,7 @@ jobs: build-check-testsuite: name: "Check: testsuite lint" runs-on: ubuntu-20.04 + timeout-minutes: 15 steps: - uses: actions/checkout@v4 - name: Check CONFDIR @@ -75,6 +77,7 @@ jobs: fail-fast: false name: "Build doc: ${{ matrix.os }}" runs-on: ${{ matrix.os }} + timeout-minutes: 15 steps: - uses: actions/checkout@v4 - name: Install dependencies @@ -112,6 +115,7 @@ jobs: fail-fast: false name: "Build doc: ${{ matrix.os }}" runs-on: ${{ matrix.os }} + timeout-minutes: 60 steps: - uses: actions/checkout@v4 - name: Install dependencies @@ -155,6 +159,7 @@ jobs: fail-fast: false name: "Build releasenotes: ${{ matrix.os }}" runs-on: ${{ matrix.os }} + timeout-minutes: 15 steps: - uses: actions/checkout@v4 - name: Install dependencies