ci: add timeout-minutes attributes for jobs

pull/6877/head
Delyan Angelov 2020-11-19 10:36:30 +02:00
parent e06756ef58
commit 40770f1697
5 changed files with 32 additions and 16 deletions

View File

@ -9,15 +9,12 @@ on:
jobs: jobs:
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: timeout-minutes: 30
matrix: env:
compiler: [gcc] CC: gcc
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Compile - name: Compile
env:
CC: ${{ matrix.compiler }}
run: make run: make
## - name: Create artifact ## - name: Create artifact
## uses: actions/upload-artifact@v2 ## uses: actions/upload-artifact@v2
@ -38,15 +35,11 @@ jobs:
## ##
## build-macos: ## build-macos:
## runs-on: macos-latest ## runs-on: macos-latest
## strategy: ## env:
## matrix: ## CC: clang
## compiler: [clang]
##
## steps: ## steps:
## - uses: actions/checkout@v1 ## - uses: actions/checkout@v1
## - name: Compile ## - name: Compile
## env:
## CC: ${{ matrix.compiler }}
## run: make ## run: make
## - name: Create artifact ## - name: Create artifact
## uses: actions/upload-artifact@v2 ## uses: actions/upload-artifact@v2

View File

@ -11,6 +11,7 @@ on:
jobs: jobs:
code-formatting: code-formatting:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
env: env:
VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10
steps: steps:
@ -26,6 +27,7 @@ jobs:
# v-fmt: # v-fmt:
# runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
# timeout-minutes: 30
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v2
# - name: getting all branch metainfo from github # - name: getting all branch metainfo from github
@ -43,6 +45,7 @@ jobs:
performance-regressions: performance-regressions:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
env: env:
VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10
steps: steps:
@ -66,6 +69,7 @@ jobs:
ubuntu-tcc: ubuntu-tcc:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
env: env:
VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10 VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10
steps: steps:
@ -103,6 +107,7 @@ jobs:
alpine-docker-musl-gcc: alpine-docker-musl-gcc:
name: alpine-musl name: alpine-musl
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
container: container:
image: thevlang/vlang:alpine-build image: thevlang/vlang:alpine-build
env: env:
@ -123,6 +128,7 @@ jobs:
macos: macos:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy: strategy:
matrix: matrix:
os: [macOS-latest] os: [macOS-latest]
@ -185,6 +191,7 @@ jobs:
ubuntu: ubuntu:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
@ -260,6 +267,7 @@ jobs:
# ubuntu-autofree-selfcompile: # ubuntu-autofree-selfcompile:
# runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
# timeout-minutes: 30
# env: # env:
# VFLAGS: -cc gcc # VFLAGS: -cc gcc
# steps: # steps:
@ -274,6 +282,7 @@ jobs:
ubuntu-musl: ubuntu-musl:
name: ubuntu-musl name: ubuntu-musl
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
container: container:
image: thevlang/vlang:ubuntu-build image: thevlang/vlang:ubuntu-build
env: env:
@ -295,6 +304,7 @@ jobs:
# ubuntu-musl: # ubuntu-musl:
# runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
# timeout-minutes: 30
# env: # env:
# VFLAGS: -cc musl-gcc # VFLAGS: -cc musl-gcc
# V_CI_MUSL: 1 # V_CI_MUSL: 1
@ -322,6 +332,7 @@ jobs:
ubuntu-llvm-mingw: ubuntu-llvm-mingw:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Cross-compile V # - name: Cross-compile V
@ -329,6 +340,7 @@ jobs:
windows-gcc: windows-gcc:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 30
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
steps: steps:
@ -363,6 +375,7 @@ jobs:
windows-msvc: windows-msvc:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 30
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc
steps: steps:
@ -398,6 +411,7 @@ jobs:
windows-tcc: windows-tcc:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 30
# We are simulating a user with no cc installed. # We are simulating a user with no cc installed.
# This way, v's cc detection on Windows is also tested. # This way, v's cc detection on Windows is also tested.
# env: # env:
@ -438,6 +452,7 @@ jobs:
compilable-v-c-and-v-win-c: compilable-v-c-and-v-win-c:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -464,6 +479,7 @@ jobs:
ubuntu-c-plus-plus: ubuntu-c-plus-plus:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -485,6 +501,7 @@ jobs:
install-modules: install-modules:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -498,6 +515,7 @@ jobs:
gitly-compiles: gitly-compiles:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -517,6 +535,7 @@ jobs:
websocket_autobahn: websocket_autobahn:
name: Autobahn integrations tests name: Autobahn integrations tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2

View File

@ -15,6 +15,7 @@ on:
jobs: jobs:
check-markdown: check-markdown:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build V - name: Build V

View File

@ -7,6 +7,7 @@ on:
jobs: jobs:
network-tests-ubuntu: network-tests-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
@ -22,10 +23,8 @@ jobs:
network-tests-macos: network-tests-macos:
runs-on: ${{ matrix.os }} runs-on: macOS-latest
strategy: timeout-minutes: 30
matrix:
os: [macOS-latest]
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
@ -44,6 +43,7 @@ jobs:
network-windows-msvc: network-windows-msvc:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 30
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
VFLAGS: -cc msvc VFLAGS: -cc msvc

View File

@ -5,6 +5,7 @@ on:
jobs: jobs:
ubuntu: ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -23,6 +24,7 @@ jobs:
macos: macos:
runs-on: macOS-latest runs-on: macOS-latest
timeout-minutes: 5
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -41,6 +43,7 @@ jobs:
windows: windows:
runs-on: windows-latest runs-on: windows-latest
timeout-minutes: 5
steps: steps:
- name: Download V - name: Download V
run: | run: |