From ceb92647b45d8f79211b1dd7ab283fa6002dede9 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 26 Aug 2024 15:05:20 +0800 Subject: [PATCH] Fix timeout for arm64 builds not correctly set (#839) --- .github/workflows/build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1d4f76..b3368d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,19 +14,18 @@ env: BUILDKIT_PROGRESS: plain DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS: true - jobs: timestamp: runs-on: ubuntu-latest outputs: timestamp: ${{ steps.timestamp.outputs.timestamp }} - steps: - - id: timestamp - run: | - timestamp=`date +%Y%m%d-%H%M` - echo "timestamp=$timestamp" - echo "timestamp=$timestamp" >> $GITHUB_OUTPUT - + steps: + - id: timestamp + run: | + timestamp=`date +%Y%m%d-%H%M` + echo "timestamp=$timestamp" + echo "timestamp=$timestamp" >> $GITHUB_OUTPUT + base: # `unbuntu-22.04-8core` for arch amd64 non-scheduled builds # `unbuntu-22.04` for arch amd64 scheduled builds @@ -36,7 +35,7 @@ jobs: strategy: matrix: arch: [amd64, arm64] - timeout-minutes: ${{ (github.event_name != 'schedule' && 30) || ((matrix.arch == 'arm64' && 60) || 30) }} + timeout-minutes: ${{ (github.event_name == 'schedule' && 60) || ((matrix.arch == 'arm64' && 45) || 30) }} needs: timestamp env: ARCH: ${{matrix.arch}} -- 2.25.1