ci: simplify ci_sanitized.yml again; use `v.exe fmt -verify vlib/builtin` for windows/msvc instead of `v test-cleancode`
parent
c70e18ea8f
commit
b50f7fdc71
|
@ -91,7 +91,9 @@ 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: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
|
run: make && ./v -cg -cstrict -o v cmd/v
|
||||||
|
- name: Ensure code is well formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests (-fsanitize=undefined)
|
- name: Self tests (-fsanitize=undefined)
|
||||||
run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
|
run: ./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)
|
||||||
|
@ -115,7 +117,9 @@ 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: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
|
run: make && ./v -cg -cstrict -o v cmd/v
|
||||||
|
- name: Ensure code is well formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests (-fsanitize=undefined)
|
- name: Self tests (-fsanitize=undefined)
|
||||||
run: ./v -cflags "-fsanitize=undefined" -o v2 cmd/v && ./v2 -cflags -fsanitize=undefined test-self
|
run: ./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)
|
||||||
|
@ -140,7 +144,9 @@ 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: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
|
run: make && ./v -cg -cstrict -o v cmd/v
|
||||||
|
- name: Ensure code is well formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests (-fsanitize=address)
|
- name: Self tests (-fsanitize=address)
|
||||||
run: ASAN_OPTIONS=detect_leaks=0 ./v -cflags "-fsanitize=address,pointer-compare,pointer-subtract" test-self
|
run: 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)
|
||||||
|
@ -168,7 +174,11 @@ jobs:
|
||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
.\make.bat -msvc
|
.\make.bat -msvc
|
||||||
.\v.exe self
|
.\v.exe self
|
||||||
.\v.exe test-cleancode
|
- name: Ensure code is well formatted
|
||||||
|
run: |
|
||||||
|
.\v.exe fmt -verify vlib/builtin/ vlib/v/scanner/ vlib/v/parser/ vlib/v/gen/
|
||||||
|
## TODO: check to see why `v test-cleancode` does not work with msvc on windows
|
||||||
|
|
||||||
## - name: Install dependencies
|
## - name: Install dependencies
|
||||||
## run: |
|
## run: |
|
||||||
## .\v.exe setup-freetype
|
## .\v.exe setup-freetype
|
||||||
|
@ -196,7 +206,9 @@ 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: make -j4 && ./v -cg -cstrict -o v cmd/v && ./v test-cleancode
|
run: make && ./v -cg -cstrict -o v cmd/v
|
||||||
|
- name: Ensure code is well formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests (-fsanitize=address)
|
- name: Self tests (-fsanitize=address)
|
||||||
run: ASAN_OPTIONS=detect_leaks=0 ./v -cflags -fsanitize=address test-self
|
run: 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)
|
||||||
|
@ -225,11 +237,14 @@ 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: make -j4 && ./v -cc clang -cg -cstrict -o v cmd/v && ./v test-cleancode
|
run: make && ./v -cc clang -cg -cstrict -o v cmd/v
|
||||||
|
- name: Ensure code is well formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests (-fsanitize=memory)
|
- name: Self tests (-fsanitize=memory)
|
||||||
run: ./v -cflags -fsanitize=memory test-self
|
run: ./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 -cc tcc test-self -msan-compiler
|
./v -cflags -fsanitize=memory -o v cmd/v
|
||||||
|
./v -cc tcc test-self -msan-compiler
|
||||||
- name: Build examples (V compiled with -fsanitize=memory)
|
- name: Build examples (V compiled with -fsanitize=memory)
|
||||||
run: ./v build-examples
|
run: ./v build-examples
|
||||||
|
|
Loading…
Reference in New Issue