Skip to content

Commit

Permalink
Merge branch 'Config_to_cache_conan' into 918_modernbuild_draft_centos
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Jun 29, 2023
2 parents fe5bdd1 + 1f0ae4a commit f95cf47
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ ifeq ($(DOCKERFILE), Dockerfile.alpine)
SUFFIX := -alpine
endif

CONAN_USER_HOME:=/tmp/conan_user_home
MAP_CONAN_HOME_TO_DOCKER_HOST_CMD_LINE_ARG:=
ifdef MAP_CONAN_HOME_TO_DOCKER_HOST
MAP_CONAN_HOME_TO_DOCKER_HOST_CMD_LINE_ARG:=-v "${MAP_CONAN_HOME_TO_DOCKER_HOST}:/conan_user_home"
MAP_CONAN_HOME_TO_DOCKER_HOST_CMD_LINE_ARG:=-v "${MAP_CONAN_HOME_TO_DOCKER_HOST}:$(CONAN_USER_HOME)"
endif

CURRENT_UID := $(shell id -u)
Expand Down Expand Up @@ -50,9 +51,11 @@ build:
-v $(PWD):/source \
${MAP_CONAN_HOME_TO_DOCKER_HOST_CMD_LINE_ARG} \
-w /source/agent/native \
-e CONAN_USER_HOME=/conan_user_home \
-e CONAN_USER_HOME=$(CONAN_USER_HOME) \
elasticobservability/apm-agent-php-dev:native-build-gcc-12.2.0-$(BUILD_ARCHITECTURE)-0.0.2 \
sh -c "cmake --preset $(BUILD_ARCHITECTURE)-release && cmake --build --preset $(BUILD_ARCHITECTURE)-release && /source/agent/native/_build/$(BUILD_ARCHITECTURE)-release/ext/unit_tests/unit_tests"
sh -c "cmake --preset $(BUILD_ARCHITECTURE)-release \
&& cmake --build --preset $(BUILD_ARCHITECTURE)-release \
&& /source/agent/native/_build/$(BUILD_ARCHITECTURE)-release/ext/unit_tests/unit_tests"
@echo "::endgroup::"

.PHONY: static-check-unit-test
Expand Down

0 comments on commit f95cf47

Please sign in to comment.