From 9b9e2e6192905422d3eb2bb589a8b206e81d9240 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 25 Mar 2023 13:12:13 +0100 Subject: [PATCH] Limit GitHub action run times We don't want a broken job to consume our entire quota, so make sure things are killed if the stray too far from a normal runtime. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68ecaaa9..a34badb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: build-linux: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -29,6 +30,7 @@ jobs: build-windows: runs-on: windows-latest + timeout-minutes: 20 defaults: run: shell: msys2 {0} @@ -60,6 +62,7 @@ jobs: build-macos: runs-on: macos-latest + timeout-minutes: 20 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -81,6 +84,7 @@ jobs: build-java: runs-on: ubuntu-latest + timeout-minutes: 5 strategy: matrix: java: [ '8', '11', '16' ] @@ -103,6 +107,7 @@ jobs: path: java/build/VncViewer.jar build-packages: + timeout-minutes: 20 strategy: matrix: target: -- 2.39.5