Skip to content

Commit

Permalink
try to fix cross compile test
Browse files Browse the repository at this point in the history
  • Loading branch information
david415 committed May 26, 2024
1 parent 7b7ad13 commit 14ac1e2
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions misc/test-golang-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,16 @@ then
then
export GOARCH=arm;
export GOARM=$SUBARCH;
echo -n "$GOARCH/$GOARM $BITS bits:";
echo -n "$GOARCH/$GOARM";
else
echo -n "$GOARCH $BITS bits:";
echo -n "$GOARCH";
fi

cd server/cmd/server;
CC="clang $TARGET $EXTRA_FLAGS $EXTRA_INCLUDE" \
go build;
cd ../../..;
echo -e "$CHECKMARK";

cd authority/cmd/voting;
CC="clang $TARGET $EXTRA_FLAGS $EXTRA_INCLUDE" \
go build;
cd ../../..;
go test -v ./...;
echo -e "$CHECKMARK";


done

Expand All @@ -193,10 +187,9 @@ then
echo "Running tests on $HOST_ARCH";

export GOARCH=amd64;
echo "$GOARCH $BITS bits:";
echo "$GOARCH";
CC="clang $TARGET $EXTRA_FLAGS $EXTRA_INCLUDE" \
go test -v ./...
echo -n "$GOARCH $BITS bits:";
go test -v ./...;
echo -e "$CHECKMARK";
fi

Expand Down

0 comments on commit 14ac1e2

Please sign in to comment.