From 7b6e23593b4e9ec83cc190339ba9bf0dda52b671 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Fri, 28 Jun 2024 11:54:54 +0900 Subject: [PATCH] github: restrict execution timeout There is no need to waste CI resources. ref. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes Signed-off-by: Kentaro Hayashi --- .github/workflows/apt.yml | 2 ++ .github/workflows/macos.yml | 1 + .github/workflows/windows.yml | 1 + .github/workflows/yum.yml | 3 +++ 4 files changed, 7 insertions(+) diff --git a/.github/workflows/apt.yml b/.github/workflows/apt.yml index 2b5ebfcbf..2c126d7ee 100644 --- a/.github/workflows/apt.yml +++ b/.github/workflows/apt.yml @@ -8,6 +8,7 @@ on: jobs: build: name: Build + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -114,6 +115,7 @@ jobs: name: Test needs: build runs-on: ubuntu-latest + timeout-minutes: 15 strategy: fail-fast: false matrix: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e69dff958..74ea9c7c9 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -8,6 +8,7 @@ on: jobs: build: name: Build + timeout-minutes: 30 strategy: fail-fast: false runs-on: macos-latest diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ee019400f..742846ca1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,6 +8,7 @@ on: jobs: build: name: Build + timeout-minutes: 90 strategy: fail-fast: false runs-on: windows-2019 diff --git a/.github/workflows/yum.yml b/.github/workflows/yum.yml index 0c9dcc05e..046f6a426 100644 --- a/.github/workflows/yum.yml +++ b/.github/workflows/yum.yml @@ -8,6 +8,7 @@ on: jobs: build: name: Build + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -93,6 +94,7 @@ jobs: name: Test (CGroup V1) needs: build runs-on: ubuntu-20.04 + timeout-minutes: 15 strategy: fail-fast: false matrix: @@ -141,6 +143,7 @@ jobs: name: Test (CGroup V2) needs: build runs-on: ubuntu-latest + timeout-minutes: 15 strategy: fail-fast: false matrix: