ci: use concurrency.cancel-in-progress
parent
88435eb769
commit
794bdfdca7
|
@ -8,15 +8,12 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
|
||||||
jobs:
|
concurrency:
|
||||||
no-scheduling:
|
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||||
runs-on: ubuntu-latest
|
cancel-in-progress: true
|
||||||
steps:
|
|
||||||
- name: Dont schedule all jobs
|
|
||||||
run: sleep 10
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
code-formatting-perf-regressions:
|
code-formatting-perf-regressions:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
env:
|
env:
|
||||||
|
@ -47,7 +44,6 @@ jobs:
|
||||||
run: cmd/tools/repeat --max_time 1501 --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
|
run: cmd/tools/repeat --max_time 1501 --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:
|
ubuntu-tcc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -115,7 +111,6 @@ jobs:
|
||||||
run: cd cmd/tools/fast && ../../../v fast.v && ./fast
|
run: cd cmd/tools/fast && ../../../v fast.v && ./fast
|
||||||
|
|
||||||
ubuntu-tcc-boehm-gc:
|
ubuntu-tcc-boehm-gc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -170,7 +165,6 @@ jobs:
|
||||||
[ "$(stat -c %s leaks.txt)" = "0" ]
|
[ "$(stat -c %s leaks.txt)" = "0" ]
|
||||||
|
|
||||||
misc-tooling:
|
misc-tooling:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -223,7 +217,6 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
alpine-docker-musl-gcc:
|
alpine-docker-musl-gcc:
|
||||||
needs: no-scheduling
|
|
||||||
name: alpine-musl
|
name: alpine-musl
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
|
@ -255,7 +248,6 @@ jobs:
|
||||||
run: ./v -silent test-self
|
run: ./v -silent test-self
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -346,7 +338,6 @@ jobs:
|
||||||
## ../v run examples/build_examples.vsh
|
## ../v run examples/build_examples.vsh
|
||||||
|
|
||||||
ubuntu:
|
ubuntu:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
steps:
|
steps:
|
||||||
|
@ -442,7 +433,6 @@ jobs:
|
||||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
ubuntu-clang:
|
ubuntu-clang:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -538,7 +528,6 @@ jobs:
|
||||||
|
|
||||||
# Ubuntu docker pre-built container
|
# Ubuntu docker pre-built container
|
||||||
ubuntu-musl:
|
ubuntu-musl:
|
||||||
needs: no-scheduling
|
|
||||||
name: ubuntu-musl
|
name: ubuntu-musl
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
|
@ -591,7 +580,6 @@ jobs:
|
||||||
# run: ./v -silent test-self
|
# run: ./v -silent test-self
|
||||||
|
|
||||||
windows-gcc:
|
windows-gcc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -634,7 +622,6 @@ jobs:
|
||||||
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
||||||
|
|
||||||
windows-msvc:
|
windows-msvc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -678,7 +665,6 @@ jobs:
|
||||||
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
||||||
|
|
||||||
windows-tcc:
|
windows-tcc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
|
@ -777,7 +763,6 @@ jobs:
|
||||||
## run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
## run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|
||||||
|
|
||||||
parser-silent:
|
parser-silent:
|
||||||
needs: no-scheduling
|
|
||||||
name: Parser silent mode
|
name: Parser silent mode
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
|
@ -817,7 +802,6 @@ jobs:
|
||||||
./v test-parser -S examples/2048/2048_fuzz.v
|
./v test-parser -S examples/2048/2048_fuzz.v
|
||||||
|
|
||||||
v-apps-compile:
|
v-apps-compile:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -53,15 +53,12 @@ on:
|
||||||
- 'vlib/v/preludes/**.v'
|
- 'vlib/v/preludes/**.v'
|
||||||
- 'vlib/v/embed_file/**.v'
|
- 'vlib/v/embed_file/**.v'
|
||||||
|
|
||||||
jobs:
|
concurrency:
|
||||||
no-scheduling:
|
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||||
runs-on: ubuntu-latest
|
cancel-in-progress: true
|
||||||
steps:
|
|
||||||
- name: Dont schedule all jobs
|
|
||||||
run: sleep 10
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
tests-sanitize-undefined-clang:
|
tests-sanitize-undefined-clang:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
@ -87,7 +84,6 @@ jobs:
|
||||||
run: ./v2 build-examples
|
run: ./v2 build-examples
|
||||||
|
|
||||||
tests-sanitize-undefined-gcc:
|
tests-sanitize-undefined-gcc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
@ -112,7 +108,6 @@ jobs:
|
||||||
run: ./v2 build-examples
|
run: ./v2 build-examples
|
||||||
|
|
||||||
tests-sanitize-address-clang:
|
tests-sanitize-address-clang:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
@ -142,7 +137,6 @@ jobs:
|
||||||
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
|
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
|
||||||
|
|
||||||
tests-sanitize-address-msvc:
|
tests-sanitize-address-msvc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
@ -169,7 +163,6 @@ jobs:
|
||||||
## .\v.exe -cflags "/fsanitize=address" test-self
|
## .\v.exe -cflags "/fsanitize=address" test-self
|
||||||
|
|
||||||
tests-sanitize-address-gcc:
|
tests-sanitize-address-gcc:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
@ -199,7 +192,6 @@ jobs:
|
||||||
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
|
run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
|
||||||
|
|
||||||
tests-sanitize-memory-clang:
|
tests-sanitize-memory-clang:
|
||||||
needs: no-scheduling
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue