Skip to content

Commit da7d828

Browse files
build: aarch64 support in linux test runner
1 parent 4db6fce commit da7d828

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

scripts/test.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
shopt -s extglob
44

55
ORIGIN=$PWD
6-
STATIC_DEPS=$ORIGIN/static-deps/lib-x86-64/lib
6+
7+
ARCH=$(uname -m)
8+
9+
if [[ "$ARCH" == "x86_64" ]]; then
10+
STATIC_DEPS=$ORIGIN/static-deps/lib-x86-64/lib
11+
elif [[ "$ARCH" == "arm64" || "$ARCH" == "aarch64" ]]; then
12+
STATIC_DEPS=$ORIGIN/static-deps/lib-aarch64/lib
13+
else
14+
echo "Unsupported arch: $ARCH"
15+
exit 1
16+
fi
17+
718
BUILD=testbuild
819

920
BAKDIR=$STATIC_DEPS/bak

0 commit comments

Comments
 (0)