[CI] keep OpenRA fixture out of LFS

This commit is contained in:
2026-06-26 20:15:50 +08:00
parent d2f2a0039f
commit f6114c9e15
4 changed files with 14 additions and 0 deletions
+2
View File
@@ -1,2 +1,4 @@
tools/trace_replay/fixtures/*.tgz filter=lfs diff=lfs merge=lfs -text
tools/trace_replay/fixtures/*.png filter=lfs diff=lfs merge=lfs -text
tools/trace_replay/fixtures/openra.tgz -filter -diff -merge -text
tools/trace_replay/fixtures/openra.0000031249.png -filter -diff -merge -text
@@ -88,6 +88,18 @@ case "${case_name}" in
esac
include="$(IFS=,; echo "${files[*]}")"
if [ "${case_name}" = "OpenRA" ]; then
echo "Fixture files for ${case_name} are stored in Git: ${include}"
for file in "${files[@]}"; do
test -s "${file}"
if head -n 1 "${file}" | grep -q "version https://git-lfs.github.com/spec/v1"; then
echo "fixture should not be stored as an LFS pointer: ${file}" >&2
exit 1
fi
done
exit 0
fi
echo "Fetching LFS fixture files for ${case_name}: ${include}"
git lfs install --local
Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.