Skip to content

Commit

Permalink
Handle arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Wilson <[email protected]>
  • Loading branch information
SWilson4 committed Jul 25, 2024
1 parent 1a91e22 commit e0af88e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/format_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

# SPDX-License-Identifier: MIT

arch=$(uname -m)

if [ "$arch" != "x86_64" ] && [ "$arch" != "arm64" ]
then
echo "This script does not currently support systems where \`uname -m\` returns $arch."
exit 1
fi

if [ ! -d "$LIBOQS_DIR" ]
then
echo Must set environment variable LIBOQS_DIR
echo Please set the environment variable LIBOQS_DIR to point to your liboqs directory.
exit 1
fi

docker run --rm -v"$LIBOQS_DIR":/root/liboqs -w /root/liboqs openquantumsafe/ci-ubuntu-focal-x86_64:latest ./tests/run_astyle.sh --no-dry-run
docker run --rm -v"$LIBOQS_DIR":/root/liboqs -w /root/liboqs openquantumsafe/ci-ubuntu-focal-$arch:latest ./tests/run_astyle.sh --no-dry-run

0 comments on commit e0af88e

Please sign in to comment.