From e2e3992e0d80b5e34f56566927cd820258982412 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 22 Jun 2022 00:20:57 +0300 Subject: [PATCH] ci: remove `continue-on-error: true` for most ci jobs (#14811) --- .github/workflows/other_ci.yml | 2 - .../workflows/v_apps_and_modules_compile.yml | 147 ++++++++---------- 2 files changed, 69 insertions(+), 80 deletions(-) diff --git a/.github/workflows/other_ci.yml b/.github/workflows/other_ci.yml index 5b8f11ac5..dd2a6f127 100644 --- a/.github/workflows/other_ci.yml +++ b/.github/workflows/other_ci.yml @@ -89,7 +89,6 @@ jobs: - name: g++ version run: g++-9 --version - name: V self compilation with g++ - continue-on-error: true run: ./v -cc g++-9 -no-std -cflags -std=c++11 -o v2 cmd/v && ./v2 -cc g++-9 -no-std -cflags -std=c++11 -o v3 cmd/v ## - name: Running tests with g++ ## run: ./v -cc g++-9 test-self @@ -98,7 +97,6 @@ jobs: run: ./v -autofree -o v2 cmd/v ## NB: this does not mean it runs, but at least keeps it from regressing - name: Shader examples can be build - continue-on-error: true run: | wget https://github.com/floooh/sokol-tools-bin/raw/33d2e4cc26088c6c28eaef5467990f8940d15aab/bin/linux/sokol-shdc chmod +x ./sokol-shdc diff --git a/.github/workflows/v_apps_and_modules_compile.yml b/.github/workflows/v_apps_and_modules_compile.yml index a8f5b16ee..06bfeb523 100644 --- a/.github/workflows/v_apps_and_modules_compile.yml +++ b/.github/workflows/v_apps_and_modules_compile.yml @@ -25,122 +25,113 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install --quiet -y libgc-dev - sudo apt-get install --quiet -y libsodium-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 xfonts-75dpi xfonts-base - - - name: Install UI through VPM - continue-on-error: true - run: | - echo "Official VPM modules should be installable" - ./v install ui + sudo apt-get install --quiet -y libgc-dev libsodium-dev libssl-dev sqlite3 libsqlite3-dev valgrind libfreetype6-dev libxi-dev libxcursor-dev libgl-dev xfonts-75dpi xfonts-base + sudo apt-get install --quiet -y --no-install-recommends gfortran liblapacke-dev libopenblas-dev - name: Build V Language Server (VLS) - continue-on-error: true run: | echo "Clone VLS" - git clone --depth 1 https://github.com/vlang/vls + git clone --depth 1 https://github.com/vlang/vls /tmp/vls echo "Build VLS" - pushd vls; v cmd/vls ; popd + v /tmp/vls/cmd/vls echo "Build VLS with -prod" - pushd vls; v -prod cmd/vls; popd + v -prod /tmp/vls/cmd/vls echo "Build VLS with -gc boehm -skip-unused" - pushd vls; v -gc boehm -skip-unused cmd/vls; popd - - - name: Build VSL - continue-on-error: true - run: | - git clone --depth 1 https://github.com/vlang/vsl ~/.vmodules/vsl - sudo apt-get install --quiet -y --no-install-recommends gfortran liblapacke-dev libopenblas-dev libgc-dev - echo "Execute Tests using Pure V Backend" - ~/.vmodules/vsl/bin/test - echo "Execute Tests using Pure V Backend with Pure V Math" - ~/.vmodules/vsl/bin/test --use-cblas - echo "Execute Tests using Pure V Backend and Garbage Collection enabled" - ~/.vmodules/vsl/bin/test --use-gc boehm - echo "Execute Tests using Pure V Backend with Pure V Math and Garbage Collection enabled" - ~/.vmodules/vsl/bin/test --use-cblas --use-gc boehm + v -gc boehm -skip-unused /tmp/vls/cmd/vls - - name: Build VTL - continue-on-error: true + - name: Build V Coreutils run: | - echo "Clone VTL" - git clone --depth 1 https://github.com/vlang/vtl ~/.vmodules/vtl - echo "Install dependencies" - sudo apt-get install --quiet -y --no-install-recommends gfortran liblapacke-dev libopenblas-dev libgc-dev - echo "Execute Tests using Pure V Backend" - ~/.vmodules/vtl/bin/test - echo "Execute Tests using Pure V Backend with Pure V Math" - ~/.vmodules/vtl/bin/test --use-cblas - echo "Execute Tests using Pure V Backend and Garbage Collection enabled" - ~/.vmodules/vtl/bin/test --use-gc boehm - echo "Execute Tests using Pure V Backend with Pure V Math and Garbage Collection enabled" - ~/.vmodules/vtl/bin/test --use-cblas --use-gc boehm + echo "Clone Coreutils" + git clone --depth 1 https://github.com/vlang/coreutils /tmp/coreutils + echo "Build Coreutils" + cd /tmp/coreutils; make - name: Build VAB - continue-on-error: true run: | - echo "Clone vab" - git clone --depth 1 https://github.com/vlang/vab + echo "Install VAB" + v install vab echo "Build vab" - cd vab; ../v ./vab.v ; cd .. + v ~/.vmodules/vab echo "Build vab with -gc boehm -skip-unused" - cd vab; ../v -gc boehm -skip-unused ./vab.v ; cd .. + v -gc boehm -skip-unused ~/.vmodules/vab - name: Build Gitly - continue-on-error: true run: | - echo "Clone markdown" - git clone https://github.com/vlang/markdown ~/.vmodules/markdown + echo "Install markdown" + v install markdown echo "Clone Gitly" - git clone --depth 1 https://github.com/vlang/gitly - cd gitly + git clone https://github.com/vlang/gitly /tmp/gitly echo "Build Gitly" - ../v . + v /tmp/gitly echo "Build Gitly with -autofree" - ../v -autofree . + v -autofree /tmp/gitly echo "Run first_run.v" - ../v run tests/first_run.v - # ./gitly -ci_run + v run /tmp/gitly/tests/first_run.v + # /tmp/gitly/gitly -ci_run - name: Build libsodium - continue-on-error: true run: | - echo "Install libsodium-dev package" - sudo apt-get install --quiet -y libsodium-dev - echo "Clone the libsodium wrapper" - git clone https://github.com/vlang/libsodium ~/.vmodules/libsodium + echo "Install the libsodium wrapper" + v install libsodium echo "Test libsodium" - VJOBS=1 ./v -stats test ~/.vmodules/libsodium + VJOBS=1 v test ~/.vmodules/libsodium - name: Build VEX - continue-on-error: true run: | - echo "Install Vex dependencies" - sudo apt-get install --quiet -y libsodium-dev libssl-dev sqlite3 libsqlite3-dev - echo "Clone Vex" - mkdir -p ~/.vmodules/nedpals; git clone https://github.com/nedpals/vex ~/.vmodules/nedpals/vex + echo "Install Vex" + v install nedpals.vex echo "Compile all of the Vex examples" - ./v should-compile-all ~/.vmodules/nedpals/vex/examples + v should-compile-all ~/.vmodules/nedpals/vex/examples echo "Compile the simple Vex example with -gc boehm -skip-unused" - ./v -gc boehm -skip-unused ~/.vmodules/nedpals/vex/examples/simple_example.v + v -gc boehm -skip-unused ~/.vmodules/nedpals/vex/examples/simple_example.v echo "Run Vex Tests" - ./v test ~/.vmodules/nedpals/vex + v test ~/.vmodules/nedpals/vex - name: Build go2v - continue-on-error: true run: | echo "Clone Go2V" - clone --depth=1 https://github.com/vlang/go2v go2v/ + git clone --depth=1 https://github.com/vlang/go2v /tmp/go2v/ echo "Build Go2V" - ./v go2v/ + v /tmp/go2v/ echo "Run Go2V tests" - VJOBS=1 ./v -stats test go2v/ + VJOBS=1 v -stats test /tmp/go2v/ - name: Build vlang/pdf - continue-on-error: true run: | - git clone --depth=1 https://github.com/vlang/pdf ~/.vmodules/pdf/ + v install pdf echo "PDF examples should compile" - ./v should-compile-all ~/.vmodules/pdf/examples + v should-compile-all ~/.vmodules/pdf/examples + + - name: Install UI through VPM + run: | + echo "Official VPM modules should be installable" + v install ui + echo "Examples of UI should compile" + v ~/.vmodules/ui/examples/build_examples.vsh + + - name: Build VSL + run: | + echo "Install VSL" + v install vsl + echo "Execute Tests using Pure V Backend" + ~/.vmodules/vsl/bin/test + echo "Execute Tests using Pure V Backend with Pure V Math" + ~/.vmodules/vsl/bin/test --use-cblas + echo "Execute Tests using Pure V Backend and Garbage Collection enabled" + ~/.vmodules/vsl/bin/test --use-gc boehm + echo "Execute Tests using Pure V Backend with Pure V Math and Garbage Collection enabled" + ~/.vmodules/vsl/bin/test --use-cblas --use-gc boehm + + - name: Build VTL + run: | + echo "Install VTL" + v install vtl + echo "Install dependencies" + echo "Execute Tests using Pure V Backend" + ~/.vmodules/vtl/bin/test + echo "Execute Tests using Pure V Backend with Pure V Math" + ~/.vmodules/vtl/bin/test --use-cblas + echo "Execute Tests using Pure V Backend and Garbage Collection enabled" + ~/.vmodules/vtl/bin/test --use-gc boehm + echo "Execute Tests using Pure V Backend with Pure V Math and Garbage Collection enabled" + ~/.vmodules/vtl/bin/test --use-cblas --use-gc boehm -- 2.30.2