1
1
mirror of https://github.com/walles/moar.git synced 2024-11-21 16:04:20 +03:00

Don't use -race on i386

This was failing in CI.
This commit is contained in:
Johan Walles 2024-11-06 19:56:59 +01:00
parent 6ef529a968
commit 5daf649ca3

View File

@ -19,7 +19,12 @@ golangci-lint run --tests=true
# Unit tests
echo "Running unit tests..."
go test -race -timeout 20s ./...
RACE=-race
if [ "$GOARCH" == "386" ]; then
# -race is not supported on i386
RACE=""
fi
go test $RACE -timeout 20s ./...
# Ensure we can cross compile
# NOTE: Make sure this list matches the one in release.sh