Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: continue testing other modules if one fails #21302

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions .github/workflows/v_apps_and_modules_compile_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
run: .github/workflows/compile_v_with_vtcc.sh

- name: Test vsql compilation and examples
if: ${{ always() }}
run: |
echo "Install vsql"
.github/workflows/retry.sh v install https://github.com/ttytm/vsql@temp/vi-ci ; cd ~/.vmodules/vsql
Expand All @@ -52,6 +53,7 @@ jobs:
v vsql/connection_test.v

- name: Test discord.v
if: ${{ always() }}
run: |
echo "Clone https://github.com/DarpHome/discord.v"
.github/workflows/retry.sh v install https://github.com/ttytm/discord.v@temp/v-ci && cd ~/.vmodules/discord
Expand All @@ -70,6 +72,7 @@ jobs:
v -g -gc boehm -skip-unused ~/.vmodules/vab

- name: Build vlang/ved
if: ${{ always() }}
run: |
.github/workflows/retry.sh git clone --depth 1 https://github.com/vlang/ved
cd ved && ../v -o ved .
Expand All @@ -78,26 +81,30 @@ jobs:
cd ..

- name: Build vlang/pdf
if: ${{ always() }}
run: |
.github/workflows/retry.sh v install pdf
echo "PDF examples should compile"
v should-compile-all ~/.vmodules/pdf/examples

- name: Build vlang/libsodium
if: ${{ always() }}
run: |
echo "Install the libsodium wrapper"
.github/workflows/retry.sh v install libsodium
echo "Test libsodium"
VJOBS=1 v test ~/.vmodules/libsodium

- name: Build vlang/coreutils
if: ${{ always() }}
run: |
echo "Clone Coreutils"
.github/workflows/retry.sh git clone --depth 1 https://github.com/vlang/coreutils /tmp/coreutils
echo "Build Coreutils"
cd /tmp/coreutils; make

- name: Build vlang/gitly
if: ${{ always() }}
run: |
echo "Install markdown"
.github/workflows/retry.sh v install markdown
Expand All @@ -116,6 +123,7 @@ jobs:
# # /tmp/gitly/gitly -ci_run

- name: Build vlang/v-analyzer
if: ${{ always() }}
run: |
echo "Clone v-analyzer"
.github/workflows/retry.sh git clone --depth=1 --filter=blob:none --recursive --shallow-submodules https://github.com/vlang/v-analyzer /tmp/v-analyzer
Expand All @@ -128,6 +136,7 @@ jobs:
# v build.vsh release # NOTE: temporary disabled due to deprecations.

- name: Format vlang/v-analyzer
if: ${{ always() }}
run: |
cd /tmp/v-analyzer
set +e
Expand All @@ -140,6 +149,7 @@ jobs:
fi

- name: Build vlang/go2v
if: ${{ always() }}
run: |
echo "Clone Go2V"
.github/workflows/retry.sh git clone --depth=1 https://github.com/vlang/go2v /tmp/go2v/
Expand All @@ -149,13 +159,15 @@ jobs:
VJOBS=1 v test /tmp/go2v/

- name: Install UI through VPM and make sure its examples compile
if: ${{ always() }}
run: |
echo "Official VPM modules should be installable"
.github/workflows/retry.sh v install ui
echo "Examples of UI should compile"
v ~/.vmodules/ui/examples/build_examples.vsh

- name: Build vlang/adventofcode
if: ${{ always() }}
run: |
echo "Clone the AdventOfCode repo"
.github/workflows/retry.sh git clone --depth 1 https://github.com/vlang/adventofcode /tmp/adventofcode
Expand All @@ -165,6 +177,7 @@ jobs:
cd /tmp/adventofcode && v run verify.v

- name: Build vlang/msgpack
if: ${{ always() }}
run: |
echo "Install msgpack"
.github/workflows/retry.sh v install msgpack
Expand All @@ -175,16 +188,17 @@ jobs:
echo "MessagePack examples should compile"
v should-compile-all ~/.vmodules/msgpack/examples

# - name: Build VEX
# run: |
# echo "Install Vex"
# .github/workflows/retry.sh v install nedpals.vex
# echo "Compile all of the Vex examples"
# v should-compile-all ~/.vmodules/nedpals/vex/examples
# echo "Compile the simple Vex example with -skip-unused"
# v -skip-unused ~/.vmodules/nedpals/vex/examples/simple_example.v
# echo "Run Vex Tests"
# v test ~/.vmodules/nedpals/vex
# - name: Build VEX
# if: ${{ always() }}
# run: |
# echo "Install Vex"
# .github/workflows/retry.sh v install nedpals.vex
# echo "Compile all of the Vex examples"
# v should-compile-all ~/.vmodules/nedpals/vex/examples
# echo "Compile the simple Vex example with -skip-unused"
# v -skip-unused ~/.vmodules/nedpals/vex/examples/simple_example.v
# echo "Run Vex Tests"
# v test ~/.vmodules/nedpals/vex

vsl-and-vtl-compile:
runs-on: ubuntu-20.04
Expand All @@ -208,6 +222,7 @@ jobs:
.github/workflows/retry.sh sudo apt-get install --quiet -y --no-install-recommends libhdf5-cpp-103 libhdf5-dev libhdf5-mpi-dev hdf5-tools libopenmpi-dev opencl-headers liblapacke-dev libopenblas-dev ## needed by VSL

- name: Build vlang/vsl
if: ${{ always() }}
run: |
echo "Installing dependencies"
.github/workflows/retry.sh sudo apt-get install --quiet -y --no-install-recommends \
Expand All @@ -229,6 +244,7 @@ jobs:
~/.vmodules/vsl/bin/test --use-cblas

- name: Build vlang/vtl
if: ${{ always() }}
run: |
echo "Install VTL"
.github/workflows/retry.sh v install vtl
Expand Down