Remove static build timeouts from regular builds. (#20470)
The builds take in excess of 2.5 hours now, and trying to use a longer timeout runs the risk of the whole job being cancelled due to the hard limit from GHA itself, so we can’t realistically do automatic retries anymore.
Austin S. Hemmelgarn committed
Jun 12, 2025 at 12:49 UTC
5f1fcb79b2ff27119a58faeaa2074a1c15adab6e
1 file changed
+1
-11
.github/workflows/build.yml
+1
-11
@@ -307,20 +307,10 @@ jobs:
307
sudo apt-get upgrade -y
308
sudo apt-get install -y qemu-user-static
309
- name: Build
310
- if: github.event_name != 'workflow_dispatch' && needs.file-check.outputs.run == 'true' # Don’t use retries on PRs.
310
+ if: needs.file-check.outputs.run == 'true'
311
run: |
312
[ "${{ matrix.qemu }}" == "true" ] || export SKIP_EMULATION=1
313
.github/scripts/build-static.sh ${{ matrix.arch }}
314
- - name: Build
315
- if: github.event_name == 'workflow_dispatch' && needs.file-check.outputs.run == 'true'
316
- id: build
317
- uses: nick-fields/retry@v3
318
- with:
319
- timeout_minutes: 150
320
- max_attempts: 2
321
- command: |
322
- [ "${{ matrix.qemu }}" == "true" ] || export SKIP_EMULATION=1
323
- .github/scripts/build-static.sh ${{ matrix.arch }}
314
- name: Store
315
id: store
316
if: needs.file-check.outputs.run == 'true'