mirror of
https://github.com/vlang/v.git
synced 2025-09-09 23:39:39 -04:00
ci: check that more apps/modules do compile with -skip-unused (#22904)
This commit is contained in:
parent
dc15f9d333
commit
355945e915
@ -59,10 +59,14 @@ jobs:
|
|||||||
make vsql/grammar.v
|
make vsql/grammar.v
|
||||||
echo "Compile vsql"
|
echo "Compile vsql"
|
||||||
v -o bin/vsql cmd/vsql
|
v -o bin/vsql cmd/vsql
|
||||||
|
echo "Compile vsql with -skip-unused"
|
||||||
|
v -skip-unused -o bin/vsql cmd/vsql
|
||||||
echo "Run examples"
|
echo "Run examples"
|
||||||
make examples
|
make examples
|
||||||
echo "Run vsql/connection_test.v"
|
echo "Run vsql/connection_test.v"
|
||||||
v vsql/connection_test.v
|
v vsql/connection_test.v
|
||||||
|
echo "Run vsql/connection_test.v with -skip-unused"
|
||||||
|
v -skip-unused vsql/connection_test.v
|
||||||
|
|
||||||
- name: Test discord.v
|
- name: Test discord.v
|
||||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||||
@ -74,6 +78,8 @@ jobs:
|
|||||||
git checkout 458261508af66fa971207c8af10ee4e1b59fbf2f
|
git checkout 458261508af66fa971207c8af10ee4e1b59fbf2f
|
||||||
echo "Execute Tests"
|
echo "Execute Tests"
|
||||||
v test .
|
v test .
|
||||||
|
echo "Execute Tests with -skip-unused"
|
||||||
|
v -skip-unused test .
|
||||||
|
|
||||||
- name: Build vlang/vab
|
- name: Build vlang/vab
|
||||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||||
@ -90,7 +96,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
v retry -- git clone --depth 1 https://github.com/vlang/ved
|
v retry -- git clone --depth 1 https://github.com/vlang/ved
|
||||||
cd ved && v -o ved .
|
cd ved && v -o ved .
|
||||||
|
echo "Build with -autofree ..."
|
||||||
v -autofree .
|
v -autofree .
|
||||||
|
echo "Build with -skip-unused ..."
|
||||||
|
v -skip-unused .
|
||||||
|
echo "Build with -prod ..."
|
||||||
v -prod .
|
v -prod .
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@ -99,7 +109,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
v retry -- v install pdf
|
v retry -- v install pdf
|
||||||
echo "PDF examples should compile"
|
echo "PDF examples should compile"
|
||||||
v should-compile-all ~/.vmodules/pdf/examples
|
v -skip-unused should-compile-all ~/.vmodules/pdf/examples
|
||||||
|
|
||||||
- name: Build vlang/libsodium
|
- name: Build vlang/libsodium
|
||||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||||
@ -107,7 +117,7 @@ jobs:
|
|||||||
echo "Install the libsodium wrapper"
|
echo "Install the libsodium wrapper"
|
||||||
v retry -- v install libsodium
|
v retry -- v install libsodium
|
||||||
echo "Test libsodium"
|
echo "Test libsodium"
|
||||||
VJOBS=1 v test ~/.vmodules/libsodium
|
VJOBS=1 v -skip-unused test ~/.vmodules/libsodium
|
||||||
|
|
||||||
- name: Build vlang/coreutils
|
- name: Build vlang/coreutils
|
||||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||||
@ -127,8 +137,8 @@ jobs:
|
|||||||
echo "Clone Gitly"
|
echo "Clone Gitly"
|
||||||
v retry -- git clone https://github.com/vlang/gitly /tmp/gitly
|
v retry -- git clone https://github.com/vlang/gitly /tmp/gitly
|
||||||
echo "Build Gitly"
|
echo "Build Gitly"
|
||||||
exit
|
|
||||||
v -cc gcc /tmp/gitly
|
v -cc gcc /tmp/gitly
|
||||||
|
v -skip-unused -cc gcc /tmp/gitly
|
||||||
## echo "Build Gitly with -autofree"
|
## echo "Build Gitly with -autofree"
|
||||||
## v -cc gcc -autofree /tmp/gitly
|
## v -cc gcc -autofree /tmp/gitly
|
||||||
echo "Compile gitly.css from gitly.scss"
|
echo "Compile gitly.css from gitly.scss"
|
||||||
@ -143,6 +153,7 @@ jobs:
|
|||||||
v retry -- v install ui
|
v retry -- v install ui
|
||||||
v -no-parallel ~/.vmodules/ui/examples/rectangles.v
|
v -no-parallel ~/.vmodules/ui/examples/rectangles.v
|
||||||
v -no-parallel ~/.vmodules/ui/examples/users.v
|
v -no-parallel ~/.vmodules/ui/examples/users.v
|
||||||
|
# v -skip-unused -no-parallel ~/.vmodules/ui/examples/users.v
|
||||||
# v run ~/.vmodules/ui/examples/build_examples.vsh
|
# v run ~/.vmodules/ui/examples/build_examples.vsh
|
||||||
|
|
||||||
- name: Build vlang/v-analyzer
|
- name: Build vlang/v-analyzer
|
||||||
@ -178,6 +189,7 @@ jobs:
|
|||||||
v retry -- git clone --depth=1 https://github.com/vlang/go2v /tmp/go2v/
|
v retry -- git clone --depth=1 https://github.com/vlang/go2v /tmp/go2v/
|
||||||
echo "Build Go2V"
|
echo "Build Go2V"
|
||||||
v /tmp/go2v/
|
v /tmp/go2v/
|
||||||
|
v -skip-unused /tmp/go2v/
|
||||||
echo "Run Go2V tests"
|
echo "Run Go2V tests"
|
||||||
VJOBS=1 v test /tmp/go2v/
|
VJOBS=1 v test /tmp/go2v/
|
||||||
|
|
||||||
@ -208,6 +220,7 @@ jobs:
|
|||||||
v -shared ~/.vmodules/msgpack/
|
v -shared ~/.vmodules/msgpack/
|
||||||
echo "Run msgpack tests"
|
echo "Run msgpack tests"
|
||||||
v test ~/.vmodules/msgpack/
|
v test ~/.vmodules/msgpack/
|
||||||
|
v -skip-unused test ~/.vmodules/msgpack/
|
||||||
echo "MessagePack examples should compile"
|
echo "MessagePack examples should compile"
|
||||||
v should-compile-all ~/.vmodules/msgpack/examples
|
v should-compile-all ~/.vmodules/msgpack/examples
|
||||||
|
|
||||||
@ -302,4 +315,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
v retry -- v install markdown
|
v retry -- v install markdown
|
||||||
v retry -- git clone --depth 1 https://github.com/vlang/vpm
|
v retry -- git clone --depth 1 https://github.com/vlang/vpm
|
||||||
cd vpm && v .
|
cd vpm && v . && v -skip-unused .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user