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

@ -1,9 +1,9 @@
#!/bin/sh -ex
# 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 --depth 1 $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ && !/opencv/ { print $3 }' .gitmodules)
# Prefer newer Clang than in base system (see also .ci/install-freebsd.sh)
# libc++ isn't in llvm* packages, so download manually