CI: added build timeout

10 minutes as default, 15 for macOS and Windows, 2 for source code package
This commit is contained in:
redtide 2024-02-08 17:04:36 +01:00
parent 753087fe2e
commit 0ca5a6c8cf

View file

@ -24,6 +24,7 @@ jobs:
clang_tidy: clang_tidy:
name: Clang Tidy name: Clang Tidy
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -37,6 +38,7 @@ jobs:
test_with_asan: test_with_asan:
name: ASAN name: ASAN
runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository
timeout-minutes: 10
env: env:
install_name: sfizz-${{ github.ref_name }}-linux install_name: sfizz-${{ github.ref_name }}-linux
strategy: strategy:
@ -88,6 +90,7 @@ jobs:
build_for_linux: build_for_linux:
name: Linux Ubuntu 22.04 name: Linux Ubuntu 22.04
runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository
timeout-minutes: 10
env: env:
install_name: sfizz-${{ github.ref_name }}-linux install_name: sfizz-${{ github.ref_name }}-linux
steps: steps:
@ -171,6 +174,7 @@ jobs:
build_for_macos: build_for_macos:
name: macOS 11 name: macOS 11
runs-on: macos-11 runs-on: macos-11
timeout-minutes: 15
env: env:
install_name: "sfizz-${{ github.ref_name }}-macos" install_name: "sfizz-${{ github.ref_name }}-macos"
steps: steps:
@ -243,6 +247,7 @@ jobs:
build_for_windows: build_for_windows:
name: Windows 2019 name: Windows 2019
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 15
strategy: strategy:
matrix: matrix:
include: include:
@ -306,6 +311,7 @@ jobs:
if: ${{ github.ref_type == 'tag' }} if: ${{ github.ref_type == 'tag' }}
name: Source code archive name: Source code archive
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 2
env: env:
install_name: sfizz-${{ github.ref_name }} install_name: sfizz-${{ github.ref_name }}
steps: steps:
@ -331,6 +337,7 @@ jobs:
build_with_libsndfile: build_with_libsndfile:
name: Linux libsndfile name: Linux libsndfile
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -378,6 +385,7 @@ jobs:
build_with_makefile: build_with_makefile:
name: Linux makefile name: Linux makefile
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3