fix(ci): only check test vectors on x86

This commit is contained in:
Nicolas Sarlin
2025-11-26 10:32:03 +01:00
committed by Nicolas Sarlin
parent 0aa0918fea
commit d6a0a366b9
2 changed files with 12 additions and 1 deletions

View File

@@ -1188,7 +1188,13 @@ gen_test_vectors:
# `comm` is used to compare the checksums, and will also notify of any added file
.PHONY: check_test_vectors
check_test_vectors:
./scripts/test_vectors.sh check apps/test-vectors
@# Test vectors are not compatible between architectures
@if uname -a | grep -q x86; then \
./scripts/test_vectors.sh check apps/test-vectors; \
else \
echo "Cannot check test vectors on non x86 platform for now."; \
fi
.PHONY: doc # Build rust doc
doc: install_rs_check_toolchain

View File

@@ -8,6 +8,11 @@ MODE="$1"
TARGET_DIR="$2"
CHECKSUM_FILE="checksums.sha256"
if [ -z "$(uname -a | grep x86)" ]; then
echo "Wrong architecture for test vectors, only x86 is supported"
exit 1
fi
if [ -z "$MODE" ] || [ -z "$TARGET_DIR" ]; then
echo "Usage: $0 <mode> <target dir>"
echo "Modes:"