Skip to content

Commit

Permalink
ci: check that more apps/modules do compile with -skip-unused (#22904)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored Nov 20, 2024
1 parent dc15f9d commit 355945e
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/v_apps_and_modules_compile_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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' }}
Expand All @@ -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 ..
Expand All @@ -99,15 +109,15 @@ 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' }}
run: |
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' }}
Expand All @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 .

0 comments on commit 355945e

Please sign in to comment.