Merge pull request 'fix(ci): clone submodule content in rattler-build package' (#376) from fix/rattler-build-submodules into main
Some checks failed
Build and Test / build (push) Has been cancelled

Reviewed-on: #376
This commit was merged in pull request #376.
This commit is contained in:
2026-03-03 14:30:16 +00:00
2 changed files with 19 additions and 0 deletions

View File

@@ -11,6 +11,24 @@ mkdir -p "$CCACHE_DIR"
echo "ccache config: CCACHE_DIR=$CCACHE_DIR CCACHE_BASEDIR=$CCACHE_BASEDIR" echo "ccache config: CCACHE_DIR=$CCACHE_DIR CCACHE_BASEDIR=$CCACHE_BASEDIR"
ccache -z || true ccache -z || true
# rattler-build's source.path does not copy submodule contents — clone them
# if the directories are missing or empty.
clone_if_empty() {
local dir="$1" url="$2" ref="$3"
local count
count=$(find "${dir}" -mindepth 1 -not -name '.git' 2>/dev/null | head -1 | wc -l)
if [ "$count" -eq 0 ]; then
echo "Submodule ${dir} missing content — cloning from ${url} (${ref})"
rm -rf "${dir}"
git clone --depth 1 --branch "${ref}" --recurse-submodules "${url}" "${dir}"
fi
}
clone_if_empty mods/silo https://git.kindred-systems.com/kindred/silo-mod.git main
clone_if_empty mods/solver https://git.kindred-systems.com/kindred/solver.git main
clone_if_empty mods/gears https://git.kindred-systems.com/kindred/gears.git main
clone_if_empty mods/datums https://git.kindred-systems.com/kindred/datums.git main
if [[ ${HOST} =~ .*linux.* ]]; then if [[ ${HOST} =~ .*linux.* ]]; then
CMAKE_PRESET=conda-linux-release CMAKE_PRESET=conda-linux-release
fi fi

View File

@@ -16,6 +16,7 @@ requirements:
build: build:
- ccache - ccache
- cmake - cmake
- git
- compilers>=1.10,<1.11 - compilers>=1.10,<1.11
- doxygen - doxygen
- icu>=75,<76 - icu>=75,<76