Revert "ci: auto-cancel previous workflows when a new commit is pushed (#10962)"

Unfortunately #10962 made PR runs, cancel runs on commits pushed
to master too, leading to false positives for failed CI runs :-| .

See https://github.com/vlang/v/commits/master?after=db5e0f21171c05fff3492754eb7aa09b8783c3f1+0&branch=master

This reverts commit 6d6b08ba2a.
pull/10968/head
Delyan Angelov 2021-07-25 23:46:32 +03:00
parent db5e0f2117
commit 8e47d27cb9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 0 additions and 47 deletions

View File

@ -1,15 +0,0 @@
name: Cancel previous workflows
on:
workflow_run:
workflows: ["Code CI", "Sanitized CI"] # the other workflows finish quickly - no need to skip them for now
types:
- requested
jobs:
cancel-previous-workflows:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.0
with:
workflow_id: ${{ github.event.workflow.id }}

View File

@ -9,14 +9,7 @@ on:
- "**.md"
jobs:
no-scheduling:
runs-on: ubuntu-latest
steps:
- name: Dont schedule all jobs
run: sleep 10
code-formatting-perf-regressions:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 15
env:
@ -47,7 +40,6 @@ jobs:
run: cmd/tools/repeat --max_time 1201 --series 3 --count 20 --nmins 2 --nmaxs 5 --warmup 3 --fail_percent 10 -t 'cd {T} ; ./v -show-timings -o v.c cmd/v' . ./vmaster
ubuntu-tcc:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
@ -114,7 +106,6 @@ jobs:
run: cd cmd/tools/fast && ../../../v fast.v && ./fast
ubuntu-tcc-boehm-gc:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
@ -169,7 +160,6 @@ jobs:
[ "$(stat -c %s leaks.txt)" = "0" ]
misc-tooling:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
@ -240,7 +230,6 @@ jobs:
alpine-docker-musl-gcc:
needs: no-scheduling
name: alpine-musl
runs-on: ubuntu-20.04
timeout-minutes: 60
@ -270,7 +259,6 @@ jobs:
./v -silent test-self
macos:
needs: no-scheduling
runs-on: macOS-latest
timeout-minutes: 60
env:
@ -359,7 +347,6 @@ jobs:
../v run examples/build_examples.vsh
ubuntu:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
@ -455,7 +442,6 @@ jobs:
# github-token: ${{ secrets.GITHUB_TOKEN }}
ubuntu-clang:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
@ -551,7 +537,6 @@ jobs:
# Ubuntu docker pre-built container
ubuntu-musl:
needs: no-scheduling
name: ubuntu-musl
runs-on: ubuntu-20.04
timeout-minutes: 60
@ -604,7 +589,6 @@ jobs:
# run: ./v -silent test-self
windows-gcc:
needs: no-scheduling
runs-on: windows-2019
timeout-minutes: 60
env:
@ -647,7 +631,6 @@ jobs:
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
windows-msvc:
needs: no-scheduling
runs-on: windows-2019
timeout-minutes: 60
env:
@ -691,7 +674,6 @@ jobs:
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
windows-tcc:
needs: no-scheduling
runs-on: windows-2019
timeout-minutes: 60
env:
@ -779,7 +761,6 @@ jobs:
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
parser-silent:
needs: no-scheduling
name: Parser silent mode
runs-on: ubuntu-20.04
timeout-minutes: 60
@ -819,7 +800,6 @@ jobs:
./v test-parser -S examples/2048/2048_fuzz.v
v-apps-compile:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:

View File

@ -9,14 +9,7 @@ on:
- "**.md"
jobs:
no-scheduling:
runs-on: ubuntu-latest
steps:
- name: Dont schedule all jobs
run: sleep 10
tests-sanitize-undefined-clang:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
@ -42,7 +35,6 @@ jobs:
run: ./v2 build-examples
tests-sanitize-undefined-gcc:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
@ -67,7 +59,6 @@ jobs:
run: ./v2 build-examples
tests-sanitize-address-clang:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
@ -97,7 +88,6 @@ jobs:
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
tests-sanitize-address-msvc:
needs: no-scheduling
runs-on: windows-2019
timeout-minutes: 120
env:
@ -124,7 +114,6 @@ jobs:
.\v.exe -cflags -fsanitize=address test-self
tests-sanitize-address-gcc:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
@ -154,7 +143,6 @@ jobs:
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
tests-sanitize-memory-clang:
needs: no-scheduling
runs-on: ubuntu-20.04
timeout-minutes: 120
env: