mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: skip more .vv files on specific jobs
This commit is contained in:
parent
5b96f7e8fd
commit
805a7d9713
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -18,6 +18,7 @@ jobs:
|
|||||||
timeout-minutes: 121
|
timeout-minutes: 121
|
||||||
env:
|
env:
|
||||||
VFLAGS: -cc tcc -no-retry-compilation
|
VFLAGS: -cc tcc -no-retry-compilation
|
||||||
|
V_CI_CSTRICT: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -11,8 +11,14 @@ const skip_files = [
|
|||||||
'non_existing.vv', // minimize commit diff churn, do not remove
|
'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 = [
|
const skip_on_ubuntu_musl = [
|
||||||
'vlib/v/checker/tests/vweb_tmpl_used_var.vv',
|
'vlib/v/checker/tests/vweb_tmpl_used_var.vv',
|
||||||
|
'vlib/v/checker/tests/vweb_routing_checks.vv',
|
||||||
]
|
]
|
||||||
|
|
||||||
const vexe = os.getenv('VEXE')
|
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_ubuntu_musl = os.getenv('V_CI_UBUNTU_MUSL').len > 0
|
||||||
|
|
||||||
|
const v_ci_cstrict = os.getenv('V_CI_CSTRICT').len > 0
|
||||||
|
|
||||||
struct TaskDescription {
|
struct TaskDescription {
|
||||||
vexe string
|
vexe string
|
||||||
evars string
|
evars string
|
||||||
@ -198,6 +206,9 @@ fn (mut tasks Tasks) run() {
|
|||||||
if v_ci_ubuntu_musl {
|
if v_ci_ubuntu_musl {
|
||||||
m_skip_files << skip_on_ubuntu_musl
|
m_skip_files << skip_on_ubuntu_musl
|
||||||
}
|
}
|
||||||
|
if v_ci_cstrict {
|
||||||
|
m_skip_files << skip_on_cstrict
|
||||||
|
}
|
||||||
$if noskip ? {
|
$if noskip ? {
|
||||||
m_skip_files = []
|
m_skip_files = []
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user