diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae0bcb19c..1981ec0af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,12 +104,13 @@ jobs: - name: Verify Fmt run: v fmt -verify ~/.vmodules/vsl - run-tests: + run-tests-on-linux: runs-on: ${{ matrix.os }} strategy: matrix: os: + - ubuntu-22.04 - ubuntu-20.04 - ubuntu-18.04 flags: diff --git a/bin/test b/bin/test index 59604d91f..a5c935c70 100755 --- a/bin/test +++ b/bin/test @@ -12,6 +12,7 @@ ## --use-cblas Execute tests using cblas ## --use-autofree Execute tests using atofree ## --use-gc=STRATEGY Execute tests using garbage collector +## --skip-examples Skip examples compilation ## ROOT=$(dirname "$0") @@ -55,15 +56,20 @@ v ${flags} test "${vsl_dir_path}" find "${vsl_dir_path}" -name '*_test' -exec rm -f {} + -echo "Compiling Examples with flags ${flags}" -for file in $(find "${vsl_dir_path}" -wholename '*/examples/*.v'); do - if [[ "${file}" == *"not_ci"* ]]; then - echo "Skipping ${file}" - continue - fi - echo "Compiling ${file}" - v ${flags} -o "${file}.o" "${file}" - echo "${file}.o created" - echo "Removing ${file}.o" - rm -f "${file}.o" -done +if [[ -z "${skip_examples}" ]]; then + echo "Compiling examples" + echo "Compiling Examples with flags ${flags}" + for file in $(find "${vsl_dir_path}" -wholename '*/examples/*.v'); do + if [[ "${file}" == *"not_ci"* ]]; then + echo "Skipping ${file}" + continue + fi + echo "Compiling ${file}" + v ${flags} -o "${file}.o" "${file}" + echo "${file}.o created" + echo "Removing ${file}.o" + rm -f "${file}.o" + done +else + echo "Skipping examples compilation" +fi