ci: Don't fetch opencv submodule unless on windows

This commit is contained in:
Megamouse 2024-11-16 16:13:25 +01:00
parent 21da04364d
commit 2ee1770383
4 changed files with 8 additions and 8 deletions

View file

@ -6,10 +6,10 @@ fi
git config --global --add safe.directory '*'
# Pull all the submodules except llvm
# Pull all the submodules except llvm and opencv
# Note: Tried to use git submodule status, but it takes over 20 seconds
# shellcheck disable=SC2046
git submodule -q update --init $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
git submodule -q update --init $(awk '/path/ && !/llvm/ && !/opencv/ { print $3 }' .gitmodules)
mkdir build && cd build || exit 1