From 4358a18dea319b590da5b64e263439136bd8f806 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Wed, 11 Dec 2024 14:42:47 -0500 Subject: [PATCH] build: archive install-*-deps logs when run in ci Type: make Change-Id: Id779d7c90a920926d40d241afb89bcb9312bcfc1 Signed-off-by: Dave Wallace --- build/build_common.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build_common.mk b/build/build_common.mk index 5c4a16549190..88529a4537e8 100644 --- a/build/build_common.mk +++ b/build/build_common.mk @@ -14,6 +14,9 @@ # Scripts require non-POSIX parts of bash SHELL := $(shell which bash) +ifneq ($(NOMAD_TASK_NAME),) +WORKSPACE ?= $(shell dirname $(shell dirname $(CURDIR))) +endif DL_CACHE_DIR = $(HOME)/Downloads MAKE_ARGS ?= -j BUILD_DIR ?= $(CURDIR)/_build @@ -34,7 +37,7 @@ D := $(DOWNLOAD_DIR) ifeq ($(WORKSPACE),) L := $(B) else -L := $(WORKSPACE)/archives/vpp-ext-deps +L := $(WORKSPACE)/archives/install-deps-logs $(shell rm -rf $(L) && mkdir -p $(L)) endif