Skip to content

Commit eecb436

Browse files
committed
Do not checkout submodules in the tidy job
Signed-off-by: Jakub Beránek <[email protected]>
1 parent b189d29 commit eecb436

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ jobs:
176176

177177
- name: checkout submodules
178178
run: src/ci/scripts/checkout-submodules.sh
179+
if: matrix.checkout_submodules
179180

180181
- name: install MinGW
181182
run: src/ci/scripts/install-mingw.sh

src/ci/citool/src/jobs.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ pub struct Job {
2727
/// Free additional disk space in the job, by removing unused packages.
2828
#[serde(default)]
2929
pub free_disk: Option<bool>,
30+
/// Should submodules be checked out eagerly?
31+
#[serde(default)]
32+
pub checkout_submodules: Option<bool>,
3033
/// Documentation link to a resource that could help people debug this CI job.
3134
pub doc_url: Option<String>,
3235
/// Whether the job is executed on AWS CodeBuild.
@@ -116,6 +119,8 @@ struct GithubActionsJob {
116119
continue_on_error: Option<bool>,
117120
#[serde(skip_serializing_if = "Option::is_none")]
118121
free_disk: Option<bool>,
122+
#[serde(default)]
123+
checkout_submodules: bool,
119124
#[serde(skip_serializing_if = "Option::is_none")]
120125
doc_url: Option<String>,
121126
#[serde(skip_serializing_if = "Option::is_none")]
@@ -242,6 +247,7 @@ fn calculate_jobs(
242247
env,
243248
continue_on_error: job.continue_on_error,
244249
free_disk: job.free_disk,
250+
checkout_submodules: job.checkout_submodules.unwrap_or(true),
245251
doc_url: job.doc_url,
246252
codebuild: job.codebuild,
247253
}

src/ci/github-actions/jobs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ pr:
129129
- name: mingw-check-tidy
130130
continue_on_error: true
131131
free_disk: false
132+
checkout_submodules: false
132133
<<: *job-linux-4c
133134
- name: x86_64-gnu-llvm-19
134135
env:

0 commit comments

Comments
 (0)