From bd13375729bb6aec2793221768a1ab13ceaa3728 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 14 Mar 2024 10:27:09 +0100 Subject: [PATCH] CI: add timeouts in the `gcc` job --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04dbb260..388d31c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,16 +55,24 @@ jobs: sudo add-apt-repository -yn 'deb http://archive.ubuntu.com/ubuntu/ focal main universe' sudo apt-get update sudo apt-get install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }} + timeout-minutes: 5 + - name: Checkout uses: actions/checkout@v3 + timeout-minutes: 1 + - name: Configure run: cmake -DCMAKE_BUILD_TYPE=Debug . env: CC: gcc-${{ matrix.gcc }} CXX: g++-${{ matrix.gcc }} CXXFLAGS: ${{ matrix.cxxflags }} + timeout-minutes: 1 + - name: Build run: cmake --build . + timeout-minutes: 10 + - name: Test run: | echo "## CTest output" >> $GITHUB_STEP_SUMMARY @@ -73,6 +81,7 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY env: UBSAN_OPTIONS: print_stacktrace=1 + timeout-minutes: 2 clang: name: Clang