ci: restore .github/workflows/ to its state at cee7856, when all checks were done

master
Delyan Angelov 2022-05-15 09:06:01 +03:00
parent dd6629e932
commit 3a09ccc80a
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
16 changed files with 104 additions and 128 deletions

View File

@ -1,10 +1,12 @@
name: Code CI name: Code CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
concurrency: concurrency:
group: build-ci-${{ github.event.pull_request.number || github.sha }} group: build-ci-${{ github.event.pull_request.number || github.sha }}
@ -31,6 +33,7 @@ jobs:
run: | run: |
echo $VFLAGS echo $VFLAGS
make make
./v test-cleancode
./v -d debug_malloc -d debug_realloc -o v cmd/v ./v -d debug_malloc -d debug_realloc -o v cmd/v
./v -cg -cstrict -o v cmd/v ./v -cg -cstrict -o v cmd/v
# Test v -realloc arena allocation # Test v -realloc arena allocation

View File

@ -1,10 +1,12 @@
name: Bootstraping works name: Bootstraping works
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
ubuntu: ubuntu:

View File

@ -1,10 +1,12 @@
name: Cross CI name: Cross CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:

View File

@ -13,7 +13,6 @@ name: Sanitized CI
on: on:
push: push:
branches: [master]
paths: paths:
- '!**' - '!**'
- 'cmd/tools/vtest*' - 'cmd/tools/vtest*'
@ -73,22 +72,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
code-formatting-before-regression:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Environment info
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
- name: Build local v
run: make
- name: v test-cleancode
run: ./v test-cleancode
- name: v test-fmt
run: ./v test-fmt
tests-sanitize-undefined-clang: tests-sanitize-undefined-clang:
needs: [code-formatting-before-regression]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -107,19 +91,13 @@ jobs:
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
sudo apt-get install clang sudo apt-get install clang
- name: Build V - name: Build V
run: | run: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
make
./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=undefined) - name: Self tests (-fsanitize=undefined)
run: | run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
./v -cflags "-fsanitize=undefined" -o v2 cmd/v
./v2 -cflags -fsanitize=undefined test-self
- name: Build examples (V compiled with -fsanitize=undefined) - name: Build examples (V compiled with -fsanitize=undefined)
run: | run: ./v2 build-examples
./v2 build-examples
tests-sanitize-undefined-gcc: tests-sanitize-undefined-gcc:
needs: [code-formatting-before-regression]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -137,19 +115,13 @@ jobs:
sudo apt-get install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind sudo apt-get install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
- name: Build V - name: Build V
run: | run: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
make
./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=undefined) - name: Self tests (-fsanitize=undefined)
run: | run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
./v -cflags -fsanitize=undefined -o v2 cmd/v
./v2 -cflags -fsanitize=undefined test-self
- name: Build examples (V compiled with -fsanitize=undefined) - name: Build examples (V compiled with -fsanitize=undefined)
run: | run: ./v2 build-examples
./v2 build-examples
tests-sanitize-address-clang: tests-sanitize-address-clang:
needs: [code-formatting-before-regression]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -168,22 +140,17 @@ jobs:
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
sudo apt-get install clang sudo apt-get install clang
- name: Build V - name: Build V
run: | run: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
make
./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=address) - name: Self tests (-fsanitize=address)
run: | run: ASAN_OPTIONS=detect_leaks=0 ./v -cflags "-fsanitize=address,pointer-compare,pointer-subtract" test-self
ASAN_OPTIONS=detect_leaks=0 ./v -cflags "-fsanitize=address,pointer-compare,pointer-subtract" test-self
- name: Self tests (V compiled with -fsanitize=address) - name: Self tests (V compiled with -fsanitize=address)
run: | run:
./v -cflags -fsanitize=address -o v cmd/v ./v -cflags -fsanitize=address -o v cmd/v &&
ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler
- name: Build examples (V compiled with -fsanitize=address) - name: Build examples (V compiled with -fsanitize=address)
run: | run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
ASAN_OPTIONS=detect_leaks=0 ./v build-examples
tests-sanitize-address-msvc: tests-sanitize-address-msvc:
needs: [code-formatting-before-regression]
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -201,6 +168,7 @@ jobs:
echo $VFLAGS echo $VFLAGS
.\make.bat -msvc .\make.bat -msvc
.\v.exe self .\v.exe self
.\v.exe test-cleancode
## - name: Install dependencies ## - name: Install dependencies
## run: | ## run: |
## .\v.exe setup-freetype ## .\v.exe setup-freetype
@ -210,7 +178,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: [code-formatting-before-regression]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -229,22 +196,17 @@ jobs:
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
sudo apt-get install clang sudo apt-get install clang
- name: Build V - name: Build V
run: | run: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
make
./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=address) - name: Self tests (-fsanitize=address)
run: | run: ASAN_OPTIONS=detect_leaks=0 ./v -cflags -fsanitize=address test-self
ASAN_OPTIONS=detect_leaks=0 ./v -cflags -fsanitize=address test-self
- name: Self tests (V compiled with -fsanitize=address) - name: Self tests (V compiled with -fsanitize=address)
run: | run:
./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v ./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v &&
ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler ASAN_OPTIONS=detect_leaks=0 ./v -cc tcc test-self -asan-compiler
- name: Build examples (V compiled with -fsanitize=address) - name: Build examples (V compiled with -fsanitize=address)
run: | run: ASAN_OPTIONS=detect_leaks=0 ./v build-examples
ASAN_OPTIONS=detect_leaks=0 ./v build-examples
tests-sanitize-memory-clang: tests-sanitize-memory-clang:
needs: [code-formatting-before-regression]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 180 timeout-minutes: 180
env: env:
@ -263,16 +225,11 @@ jobs:
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
sudo apt-get install clang sudo apt-get install clang
- name: Build V - name: Build V
run: | run: make -j4 && ./v -cc clang -cg -cstrict -o v cmd/v && ./v test-cleancode
make
./v -cc clang -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=memory) - name: Self tests (-fsanitize=memory)
run: | run: ./v -cflags -fsanitize=memory test-self
./v -cflags -fsanitize=memory test-self
- name: Self tests (V compiled with -fsanitize=memory) - name: Self tests (V compiled with -fsanitize=memory)
run: | run:
./v -cflags -fsanitize=memory -o v cmd/v ./v -cflags -fsanitize=memory -o v cmd/v && ./v -cc tcc test-self -msan-compiler
./v -cc tcc test-self -msan-compiler
- name: Build examples (V compiled with -fsanitize=memory) - name: Build examples (V compiled with -fsanitize=memory)
run: | run: ./v build-examples
./v build-examples

View File

@ -1,10 +1,12 @@
name: vlang benchmarks name: vlang benchmarks
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
run: run:

View File

@ -1,10 +1,12 @@
name: Containers CI name: Containers CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
concurrency: concurrency:
group: build-containers-${{ github.event.pull_request.number || github.sha }} group: build-containers-${{ github.event.pull_request.number || github.sha }}

View File

@ -2,11 +2,7 @@ name: Docs CI
### Run on *EVERY* commit. The documentation *SHOULD* stay valid, and ### Run on *EVERY* commit. The documentation *SHOULD* stay valid, and
### the developers should receive early warning if they break it. ### the developers should receive early warning if they break it.
on: on: [push, pull_request]
workflow_run:
workflows: ["Other CI"]
types:
- completed
jobs: jobs:
check-markdown: check-markdown:

View File

@ -1,10 +1,12 @@
name: Graphics CI name: Graphics CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
gg-regressions: gg-regressions:

View File

@ -2,8 +2,6 @@ name: Other CI
on: on:
push: push:
branches:
- master
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -16,7 +14,6 @@ concurrency:
jobs: jobs:
no-gpl-by-accident: no-gpl-by-accident:
needs: [code-formatting]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@ -42,7 +39,6 @@ jobs:
run: ./v test-fmt run: ./v test-fmt
performance-regressions: performance-regressions:
needs: [code-formatting]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 15 timeout-minutes: 15
env: env:
@ -67,7 +63,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
misc-tooling: misc-tooling:
needs: [code-formatting]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 121 timeout-minutes: 121
env: env:
@ -116,7 +111,6 @@ jobs:
./v should-compile-all examples/sokol/*.v examples/sokol/0?*/*.v ./v should-compile-all examples/sokol/*.v examples/sokol/0?*/*.v
parser-silent: parser-silent:
needs: [code-formatting]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 121 timeout-minutes: 121
steps: steps:

View File

@ -1,10 +1,12 @@
name: Path Testing CI name: Path Testing CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
concurrency: concurrency:
group: build-paths-${{ github.event.pull_request.number || github.sha }} group: build-paths-${{ github.event.pull_request.number || github.sha }}

View File

@ -1,10 +1,12 @@
name: sdl CI name: sdl CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
v-compiles-sdl-examples: v-compiles-sdl-examples:

View File

@ -1,10 +1,12 @@
name: toml CI name: toml CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
toml-module-pass-external-test-suites: toml-module-pass-external-test-suites:

View File

@ -1,10 +1,12 @@
name: V Apps and Modules name: V Apps and Modules
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
concurrency: concurrency:
group: build-other-${{ github.event.pull_request.number || github.sha }} group: build-other-${{ github.event.pull_request.number || github.sha }}

View File

@ -1,10 +1,12 @@
name: vab CI name: vab CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
vab-compiles-v-examples: vab-compiles-v-examples:

View File

@ -1,10 +1,14 @@
name: Build Vinix kernel name: Build Vinix kernel
on: on:
workflow_run: pull_request:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed push:
branches:
- master
paths-ignore:
- "**.md"
jobs: jobs:
vinix-build: vinix-build:

View File

@ -1,10 +1,12 @@
name: Websockets CI name: Websockets CI
on: on:
workflow_run: push:
workflows: ["Other CI"] paths-ignore:
types: - "**.md"
- completed pull_request:
paths-ignore:
- "**.md"
jobs: jobs:
websocket_tests: websocket_tests: