Skip to content

Commit

Permalink
rebase, finalize
Browse files Browse the repository at this point in the history
for preserve separate vpm network ci
  • Loading branch information
ttytm committed Apr 25, 2024
1 parent d40e8e0 commit 8007ba5
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/tools_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ name: Tools CI
on:
push:
paths:
- '**/tools_ci.yml'
- 'cmd/tools/**'
- 'cmd/**'
- '!cmd/tools/vpm/**'
- 'vlib/**'
- 'thirdparty/**'
- '!**.md'
- '**/tools_ci.yml'
pull_request:
paths:
- '**/tools_ci.yml'
- 'cmd/tools/**'
- 'cmd/**'
- '!cmd/tools/vpm/**'
- 'vlib/**'
- 'thirdparty/**'
- '!**.md'
- '**/tools_ci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
Expand All @@ -34,27 +36,28 @@ jobs:
- name: Build V
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
- name: Test
run: ./v -d network test-self cmd/tools
run: ./v test-self cmd/tools
- name: Test (-cstrict)
if: ${{ matrix.cc != 'tcc' }}
run: ./v -cstrict -d network test-self cmd/tools
run: ./v -cstrict test-self cmd/tools
- name: Test (-prod)
if: ${{ matrix.cc != 'tcc' }}
run: ./v -prod -d network test-self cmd/tools
run: ./v -prod test-self cmd/tools
- name: Test sanitized
if: ${{ matrix.cc != 'tcc' }}
run: |
if [[ ${{ matrix.cc }} == "clang" ]]; then
cmd="./v -cc clang -cflags -fsanitize=undefined -d network test-self cmd/tools"
cmd="./v -cc clang -cflags -fsanitize=undefined test-self cmd/tools"
echo $cmd && $cmd
cmd="./v -cc clang -cflags -fsanitize=memory -d network test-self cmd/tools"
cmd="./v -cc clang -cflags -fsanitize=memory test-self cmd/tools"
echo $cmd && $cmd
else
# ./v -cc gcc -cflags -fsanitize=kernel-address -d network test-self cmd/tools
cmd="./v -cc gcc -cflags -fsanitize=thread -d network test-self cmd/tools"
cmd="./v -cc gcc -cflags -fsanitize=thread test-self cmd/tools"
echo $cmd && $cmd
cmd="./v -cc gcc -cflags -fsanitize=address,leak,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr -d network test-self cmd/tools"
cmd="./v -cc gcc -cflags -fsanitize=address,leak,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr test-self cmd/tools"
echo $cmd && $cmd
# cmd="./v -cc gcc -cflags -fsanitize=kernel-address test-self cmd/tools"
# echo $cmd && $cmd
fi
macos:
Expand All @@ -70,11 +73,11 @@ jobs:
- name: Build V
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
- name: Test
run: ./v -d network test-self cmd/tools
run: ./v test-self cmd/tools
- name: Test (-cstrict)
run: ./v -cstrict -d network test-self cmd/tools
run: ./v -cstrict test-self cmd/tools
- name: Test (-prod)
run: ./v -prod -d network test-self cmd/tools
run: ./v -prod test-self cmd/tools

windows:
runs-on: windows-2019
Expand All @@ -89,10 +92,10 @@ jobs:
- name: Build V
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
- name: Test
run: ./v -d network test-self cmd/tools
run: ./v test-self cmd/tools
- name: Test (-cstrict)
if: ${{ matrix.cc == 'msvc' }}
run: ./v -cstrict -d network test-self cmd/tools
if: ${{ matrix.cc != 'tcc' }}
run: ./v -cstrict test-self cmd/tools
- name: Test (-prod)
if: ${{ matrix.cc != 'tcc' }}
run: ./v -prod -d network test-self cmd/tools
run: ./v -prod test-self cmd/tools

0 comments on commit 8007ba5

Please sign in to comment.