mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-06 21:34:05 -05:00
fix(ci): only check test vectors on x86
This commit is contained in:
committed by
Nicolas Sarlin
parent
0aa0918fea
commit
d6a0a366b9
8
Makefile
8
Makefile
@@ -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
|
||||
|
||||
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user