From 805a7d971383e586ade24dfa49a66fee814b76a0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 18 May 2022 20:04:59 +0300 Subject: [PATCH] ci: skip more .vv files on specific jobs --- .github/workflows/ci.yml | 1 + vlib/v/compiler_errors_test.v | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29cbc8abdf..6e212a63a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: timeout-minutes: 121 env: VFLAGS: -cc tcc -no-retry-compilation + V_CI_CSTRICT: 1 steps: - uses: actions/checkout@v2 - name: Install dependencies diff --git a/vlib/v/compiler_errors_test.v b/vlib/v/compiler_errors_test.v index bd2ac58728..55f6f72f41 100644 --- a/vlib/v/compiler_errors_test.v +++ b/vlib/v/compiler_errors_test.v @@ -11,8 +11,14 @@ const skip_files = [ 'non_existing.vv', // minimize commit diff churn, do not remove ] +const skip_on_cstrict = [ + 'vlib/v/checker/tests/missing_c_lib_header_1.vv', + 'vlib/v/checker/tests/missing_c_lib_header_with_explanation_2.vv', +] + const skip_on_ubuntu_musl = [ 'vlib/v/checker/tests/vweb_tmpl_used_var.vv', + 'vlib/v/checker/tests/vweb_routing_checks.vv', ] const vexe = os.getenv('VEXE') @@ -31,6 +37,8 @@ const github_job = os.getenv('GITHUB_JOB') const v_ci_ubuntu_musl = os.getenv('V_CI_UBUNTU_MUSL').len > 0 +const v_ci_cstrict = os.getenv('V_CI_CSTRICT').len > 0 + struct TaskDescription { vexe string evars string @@ -198,6 +206,9 @@ fn (mut tasks Tasks) run() { if v_ci_ubuntu_musl { m_skip_files << skip_on_ubuntu_musl } + if v_ci_cstrict { + m_skip_files << skip_on_cstrict + } $if noskip ? { m_skip_files = [] }