From aae4595bdbf16ebfc73299fa63ae7dffb8300d56 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 13 May 2023 13:24:43 +0200 Subject: [PATCH] Add timeout of 35 minutes to workflow jobs (#4928) --- .github/workflows/build.yml | 4 +++- .github/workflows/flatpak.yml | 1 + .github/workflows/nightly_pr_comment.yml | 3 ++- .github/workflows/release.yml | 6 ++++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54389e55f1..c6dc724c82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,7 @@ jobs: build: name: ${{ matrix.OS_NAME }} (${{ matrix.configuration }}) runs-on: ${{ matrix.os }} + timeout-minutes: 35 strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] @@ -109,6 +110,7 @@ jobs: build_macos: name: macOS Universal (${{ matrix.configuration }}) runs-on: ubuntu-latest + timeout-minutes: 35 strategy: matrix: configuration: [ Debug, Release ] @@ -150,4 +152,4 @@ jobs: with: name: ava-ryujinx-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-macos_universal path: "publish_ava/*.tar.gz" - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' \ No newline at end of file diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml index 86a80eabf8..04b917c34c 100644 --- a/.github/workflows/flatpak.yml +++ b/.github/workflows/flatpak.yml @@ -12,6 +12,7 @@ concurrency: flatpak-release jobs: release: + timeout-minutes: 35 runs-on: ubuntu-latest env: diff --git a/.github/workflows/nightly_pr_comment.yml b/.github/workflows/nightly_pr_comment.yml index bc3d1c43f9..9ddd458c6a 100644 --- a/.github/workflows/nightly_pr_comment.yml +++ b/.github/workflows/nightly_pr_comment.yml @@ -7,6 +7,7 @@ jobs: pr_comment: if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest + timeout-minutes: 35 steps: - uses: actions/github-script@v6 with: @@ -65,4 +66,4 @@ jobs: } else { core.info(`Creating a comment`); await github.rest.issues.createComment({repo, owner, issue_number, body}); - } + } \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 363e9cadda..a320331909 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,6 +46,7 @@ jobs: release: name: Release ${{ matrix.OS_NAME }} runs-on: ${{ matrix.os }} + timeout-minutes: 35 strategy: matrix: os: [ ubuntu-latest, windows-latest ] @@ -143,13 +144,14 @@ jobs: macos_release: name: Release MacOS universal runs-on: ubuntu-latest + timeout-minutes: 35 steps: - uses: actions/checkout@v3 - uses: actions/setup-dotnet@v3 with: global-json-file: global.json - + - name: Setup LLVM 14 run: | wget https://apt.llvm.org/llvm.sh @@ -205,4 +207,4 @@ jobs: needs: release with: ryujinx_version: "1.1.${{ github.run_number }}" - secrets: inherit + secrets: inherit \ No newline at end of file