diff --git a/.github/workflows/v_apps_and_modules_compile_ci.yml b/.github/workflows/v_apps_and_modules_compile_ci.yml index 5cc79228e4b7aa..66023062c270bc 100644 --- a/.github/workflows/v_apps_and_modules_compile_ci.yml +++ b/.github/workflows/v_apps_and_modules_compile_ci.yml @@ -59,10 +59,14 @@ jobs: make vsql/grammar.v echo "Compile vsql" v -o bin/vsql cmd/vsql + echo "Compile vsql with -skip-unused" + v -skip-unused -o bin/vsql cmd/vsql echo "Run examples" make examples echo "Run 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 if: ${{ !cancelled() && steps.build.outcome == 'success' }} @@ -74,6 +78,8 @@ jobs: git checkout 458261508af66fa971207c8af10ee4e1b59fbf2f echo "Execute Tests" v test . + echo "Execute Tests with -skip-unused" + v -skip-unused test . - name: Build vlang/vab if: ${{ !cancelled() && steps.build.outcome == 'success' }} @@ -90,7 +96,11 @@ jobs: run: | v retry -- git clone --depth 1 https://github.com/vlang/ved cd ved && v -o ved . + echo "Build with -autofree ..." v -autofree . + echo "Build with -skip-unused ..." + v -skip-unused . + echo "Build with -prod ..." v -prod . cd .. @@ -99,7 +109,7 @@ jobs: run: | v retry -- v install pdf 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 if: ${{ !cancelled() && steps.build.outcome == 'success' }} @@ -107,7 +117,7 @@ jobs: echo "Install the libsodium wrapper" v retry -- v install libsodium echo "Test libsodium" - VJOBS=1 v test ~/.vmodules/libsodium + VJOBS=1 v -skip-unused test ~/.vmodules/libsodium - name: Build vlang/coreutils if: ${{ !cancelled() && steps.build.outcome == 'success' }} @@ -127,8 +137,8 @@ jobs: echo "Clone Gitly" v retry -- git clone https://github.com/vlang/gitly /tmp/gitly echo "Build Gitly" - exit v -cc gcc /tmp/gitly + v -skip-unused -cc gcc /tmp/gitly ## echo "Build Gitly with -autofree" ## v -cc gcc -autofree /tmp/gitly echo "Compile gitly.css from gitly.scss" @@ -143,6 +153,7 @@ jobs: v retry -- v install ui v -no-parallel ~/.vmodules/ui/examples/rectangles.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 - name: Build vlang/v-analyzer @@ -178,6 +189,7 @@ jobs: v retry -- git clone --depth=1 https://github.com/vlang/go2v /tmp/go2v/ echo "Build Go2V" v /tmp/go2v/ + v -skip-unused /tmp/go2v/ echo "Run Go2V tests" VJOBS=1 v test /tmp/go2v/ @@ -208,6 +220,7 @@ jobs: v -shared ~/.vmodules/msgpack/ echo "Run msgpack tests" v test ~/.vmodules/msgpack/ + v -skip-unused test ~/.vmodules/msgpack/ echo "MessagePack examples should compile" v should-compile-all ~/.vmodules/msgpack/examples @@ -302,4 +315,4 @@ jobs: run: | v retry -- v install markdown v retry -- git clone --depth 1 https://github.com/vlang/vpm - cd vpm && v . + cd vpm && v . && v -skip-unused .