Do not checkout GCC submodule for the tidy job

This commit is contained in:
Jakub Beránek 2025-06-08 21:19:24 +02:00
parent 334ba81275
commit cb9980133c
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
2 changed files with 8 additions and 0 deletions

View file

@ -129,6 +129,10 @@ pr:
- name: mingw-check-tidy
continue_on_error: true
free_disk: false
env:
# This submodule is expensive to checkout, and it should not be needed for
# tidy. This speeds up the PR CI job by ~1 minute.
SKIP_SUBMODULES: src/gcc
<<: *job-linux-4c
- name: x86_64-gnu-llvm-19
env:

View file

@ -55,7 +55,11 @@ for i in ${!modules[@]}; do
bg_pids[${i}]=$!
continue
else
# Submodule paths contained in SKIP_SUBMODULES (comma-separated list) will not be
# checked out.
if [ -z "${SKIP_SUBMODULES:-}" ] || [[ ! ",$SKIP_SUBMODULES," = *",$module,"* ]]; then
use_git="$use_git $module"
fi
fi
done
retry sh -c "git submodule deinit -f $use_git && \