ci: the Linux gate builds the real-file corpus tests in and its shards fetch the corpora

Part of #15711
This commit is contained in:
aiongg committed 2026-11-20 04:16:53 +00:00
1 parent d5e182a725
commit f08d65ac69
3 files changed
+33

No files matched your search

+6
View File
@@ -21,6 +21,12 @@ cargo nextest run --archive-file "$NEXTEST_ARCHIVE_FILE" --workspace-remap . --e
xtask=("$archive/target/debug/xtask" ci tests --from "$archive" --shard "$GATE_SHARD")
case "$(uname -s)" in MINGW* | MSYS* | CYGWIN*) xtask=("$archive/target/debug/xtask.exe" ci tests --from "$archive" --shard "$GATE_SHARD") ;; esac
# The gate builds the real-file corpus tests in (PHOTOCRAFT_CORPUS_TESTS=1, xtask's CORPUS_FEATURES):
# they fail when the corpus is missing, so a shard fetches it first (pinned commits, sha256-verified).
if [ "${PHOTOCRAFT_CORPUS_TESTS:-}" = 1 ]; then
"${xtask[0]}" corpus --all
fi
case "${1:-}" in
"") exec "${xtask[@]}" ;;
--gpu-shard)