From 40770f16976b2c67363de9dea5c91f5c6287f380 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 19 Nov 2020 10:36:30 +0200 Subject: [PATCH] ci: add timeout-minutes attributes for jobs --- .github/workflows/binary_artifact.yml | 17 +++++------------ .github/workflows/ci.yml | 19 +++++++++++++++++++ .github/workflows/docs_ci.yml | 1 + .github/workflows/periodic.yml | 8 ++++---- .github/workflows/prebuilt.yml | 3 +++ 5 files changed, 32 insertions(+), 16 deletions(-) diff --git a/.github/workflows/binary_artifact.yml b/.github/workflows/binary_artifact.yml index 2bcbd1c1ee..aed7631126 100644 --- a/.github/workflows/binary_artifact.yml +++ b/.github/workflows/binary_artifact.yml @@ -9,15 +9,12 @@ on: jobs: build-linux: runs-on: ubuntu-latest - strategy: - matrix: - compiler: [gcc] - + timeout-minutes: 30 + env: + CC: gcc steps: - uses: actions/checkout@v1 - name: Compile - env: - CC: ${{ matrix.compiler }} run: make ## - name: Create artifact ## uses: actions/upload-artifact@v2 @@ -38,15 +35,11 @@ jobs: ## ## build-macos: ## runs-on: macos-latest -## strategy: -## matrix: -## compiler: [clang] -## +## env: +## CC: clang ## steps: ## - uses: actions/checkout@v1 ## - name: Compile -## env: -## CC: ${{ matrix.compiler }} ## run: make ## - name: Create artifact ## uses: actions/upload-artifact@v2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eec4cf364a..ab648773af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: code-formatting: runs-on: ubuntu-18.04 + timeout-minutes: 30 env: VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 steps: @@ -26,6 +27,7 @@ jobs: # v-fmt: # runs-on: ubuntu-18.04 +# timeout-minutes: 30 # steps: # - uses: actions/checkout@v2 # - name: getting all branch metainfo from github @@ -43,6 +45,7 @@ jobs: performance-regressions: runs-on: ubuntu-18.04 + timeout-minutes: 30 env: VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 steps: @@ -66,6 +69,7 @@ jobs: ubuntu-tcc: runs-on: ubuntu-18.04 + timeout-minutes: 30 env: VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 steps: @@ -103,6 +107,7 @@ jobs: alpine-docker-musl-gcc: name: alpine-musl runs-on: ubuntu-latest + timeout-minutes: 30 container: image: thevlang/vlang:alpine-build env: @@ -123,6 +128,7 @@ jobs: macos: runs-on: ${{ matrix.os }} + timeout-minutes: 30 strategy: matrix: os: [macOS-latest] @@ -185,6 +191,7 @@ jobs: ubuntu: runs-on: ubuntu-18.04 + timeout-minutes: 30 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 @@ -260,6 +267,7 @@ jobs: # ubuntu-autofree-selfcompile: # runs-on: ubuntu-18.04 +# timeout-minutes: 30 # env: # VFLAGS: -cc gcc # steps: @@ -274,6 +282,7 @@ jobs: ubuntu-musl: name: ubuntu-musl runs-on: ubuntu-latest + timeout-minutes: 30 container: image: thevlang/vlang:ubuntu-build env: @@ -295,6 +304,7 @@ jobs: # ubuntu-musl: # runs-on: ubuntu-18.04 +# timeout-minutes: 30 # env: # VFLAGS: -cc musl-gcc # V_CI_MUSL: 1 @@ -322,6 +332,7 @@ jobs: ubuntu-llvm-mingw: runs-on: ubuntu-18.04 + timeout-minutes: 30 steps: - uses: actions/checkout@v2 # - name: Cross-compile V @@ -329,6 +340,7 @@ jobs: windows-gcc: runs-on: windows-2019 + timeout-minutes: 30 env: VFLAGS: -cc gcc steps: @@ -363,6 +375,7 @@ jobs: windows-msvc: runs-on: windows-2019 + timeout-minutes: 30 env: VFLAGS: -cc msvc steps: @@ -398,6 +411,7 @@ jobs: windows-tcc: runs-on: windows-2019 + timeout-minutes: 30 # We are simulating a user with no cc installed. # This way, v's cc detection on Windows is also tested. # env: @@ -438,6 +452,7 @@ jobs: compilable-v-c-and-v-win-c: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -464,6 +479,7 @@ jobs: ubuntu-c-plus-plus: runs-on: ubuntu-18.04 + timeout-minutes: 30 steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -485,6 +501,7 @@ jobs: install-modules: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -498,6 +515,7 @@ jobs: gitly-compiles: runs-on: ubuntu-18.04 + timeout-minutes: 30 steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -517,6 +535,7 @@ jobs: websocket_autobahn: name: Autobahn integrations tests runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/docs_ci.yml b/.github/workflows/docs_ci.yml index 682ad26f59..0a04479abf 100644 --- a/.github/workflows/docs_ci.yml +++ b/.github/workflows/docs_ci.yml @@ -15,6 +15,7 @@ on: jobs: check-markdown: runs-on: ubuntu-18.04 + timeout-minutes: 5 steps: - uses: actions/checkout@v2 - name: Build V diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 9cdf295c1c..1073e692ec 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -7,6 +7,7 @@ on: jobs: network-tests-ubuntu: runs-on: ubuntu-latest + timeout-minutes: 30 env: V_CI_PERIODIC: 1 steps: @@ -22,10 +23,8 @@ jobs: network-tests-macos: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macOS-latest] + runs-on: macOS-latest + timeout-minutes: 30 env: V_CI_PERIODIC: 1 steps: @@ -44,6 +43,7 @@ jobs: network-windows-msvc: runs-on: windows-2019 + timeout-minutes: 30 env: V_CI_PERIODIC: 1 VFLAGS: -cc msvc diff --git a/.github/workflows/prebuilt.yml b/.github/workflows/prebuilt.yml index 429d31ee53..fae13cbc49 100644 --- a/.github/workflows/prebuilt.yml +++ b/.github/workflows/prebuilt.yml @@ -5,6 +5,7 @@ on: jobs: ubuntu: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Install dependencies run: | @@ -23,6 +24,7 @@ jobs: macos: runs-on: macOS-latest + timeout-minutes: 5 steps: - name: Install dependencies run: | @@ -41,6 +43,7 @@ jobs: windows: runs-on: windows-latest + timeout-minutes: 5 steps: - name: Download V run: |