Set architecture for validatepr builds

It was failing on darwin, because amd64 is no longer supported.

"build constraints exclude all Go files" in pkg/machine/libkrun

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
This commit is contained in:
Anders F Björklund
2026-01-19 17:48:01 +01:00
parent 0c436c40ae
commit ea01acf325

View File

@@ -16,7 +16,7 @@ build() {
fi
echo "Building darwin"
if ! GOOS=darwin CGO_ENABLED=0 go build -tags "$REMOTETAGS" -o bin/podman-remote-darwin ./cmd/podman; then
if ! GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -tags "$REMOTETAGS" -o bin/podman-remote-darwin ./cmd/podman; then
err+="\n - Darwin "
fi