From 658e4096d622ab7e0af1cd57f2b76cc6a9d5dd9b Mon Sep 17 00:00:00 2001 From: Adam Kaplan Date: Thu, 16 Jan 2025 10:53:18 -0500 Subject: [PATCH] fix: Verify Builds Cross-Compiled Binaries Update the `verify` Makefile target to build cross-compiled binaries. This ensures the s2i CLI can be released across all supported platforms at all times. Prevents future regressions of #1204. Signed-off-by: Adam Kaplan --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4c98b13f0..5ec6aa81d 100644 --- a/Makefile +++ b/Makefile @@ -30,11 +30,16 @@ all build: build-container: ${CONTAINER_ENGINE} build -t localhost/source-to-image/s2i:${VERSION} . +# Build cross-compiled binaries. +build-cross: + hack/build-cross.sh +.PHONY: build-cross + # Verify if code is properly organized. # # Example: # make verify -verify: build +verify: build-cross hack/verify-gofmt.sh hack/verify-deps.sh hack/verify-bash-completion.sh