You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -223,11 +221,11 @@ test-release: ## - Check that all release binaries are created
223
221
224
222
.PHONY: test-unit
225
223
test-unit: prepare-test-context ## - Run unit tests only
226
-
set -o pipefail; go test${GO_TEST_FLAG} -tags=$(GOBUILDTAGS) -v -race -coverprofile=build/coverage-${OS_NAME}.out ./... | tee build/test-unit-${OS_NAME}.out
224
+
set -o pipefail;CGO_ENABLED=1 go test${GO_TEST_FLAG} -tags=$(GOBUILDTAGS) -v -race -coverprofile=build/coverage-${OS_NAME}.out ./... | tee build/test-unit-${OS_NAME}.out
227
225
228
226
.PHONY: benchmark
229
227
benchmark: prepare-test-context install-benchstat ## - Run benchmark tests only
230
-
set -o pipefail; go test -bench=$(BENCHMARK_FILTER) -tags=$(GOBUILDTAGS) -run=$(BENCHMARK_FILTER)$(BENCHMARK_ARGS)$(BENCHMARK_PACKAGE)| tee "build/$(BENCH_BASE)"
228
+
set -o pipefail;CGO_ENABLED=1 go test -bench=$(BENCHMARK_FILTER) -tags=$(GOBUILDTAGS) -run=$(BENCHMARK_FILTER)$(BENCHMARK_ARGS)$(BENCHMARK_PACKAGE)| tee "build/$(BENCH_BASE)"
231
229
232
230
.PHONY: install-benchstat
233
231
install-benchstat: ## - Install the benchstat package
build-releaser: ## - Build a Docker image to run make package including all build tools
315
312
ifeq ($(shell uname -p),arm)
316
313
$(eval SUFFIX := ${CROSSBUILD_ARM_SUFFIX})
314
+
else ifeq ($(shell uname -p),aarch64)
315
+
$(eval SUFFIX := ${CROSSBUILD_ARM_SUFFIX})
317
316
else
318
317
$(eval SUFFIX := ${CROSSBUILD_SUFFIX})
319
318
endif
@@ -325,16 +324,16 @@ endif
325
324
326
325
.PHONY: docker-release
327
326
docker-release: build-releaser ## - Builds a release for all platforms in a dockerised environment
328
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server $(BUILDER_IMAGE) release
327
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server $(BUILDER_IMAGE) release
329
328
330
329
.PHONY: docker-cover-e2e-binaries
331
330
docker-cover-e2e-binaries: build-releaser
332
331
ifeq "${FIPS}" "true"
333
332
## non-linux is currently unsupported for FIPS
334
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH)
333
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH)
335
334
else
336
335
## Build for local architecture and for linux/$ARCH for docker images.
337
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH) cover-$(shell go env GOOS)/$(shell go env GOARCH)
336
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH) cover-$(shell go env GOOS)/$(shell go env GOARCH)
338
337
endif
339
338
340
339
.PHONY: release
@@ -404,6 +403,7 @@ test-int-set: ## - Run integration tests without setup
0 commit comments