From 005cdebe512d81e3974d8aa32f2383f11804e869 Mon Sep 17 00:00:00 2001 From: Noah Thornton Date: Fri, 17 Jul 2026 15:02:32 -0700 Subject: [PATCH] Test using release builds in CI --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3ee0aa0d9..7c7ca14e2 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,12 @@ # limitations under the License. # Version and build configuration variables -BUILD_CONFIGURATION ?= debug +# Defaults to a release build (for both binaries and tests). This is a plain +# assignment, so it deliberately IGNORES any BUILD_CONFIGURATION set in the +# environment (e.g. the value CI exports via $GITHUB_ENV). To force a debug +# build, pass it on the command line: `make BUILD_CONFIGURATION=debug ...` +# (command-line assignments still override this). +BUILD_CONFIGURATION := release WARNINGS_AS_ERRORS ?= true SWIFT_CONFIGURATION := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors) export RELEASE_VERSION ?= $(shell git describe --tags --always)