From 532182a5579bc19bdfa123207062d82d8d6ca899 Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Tue, 28 Feb 2023 17:15:24 +0300 Subject: [PATCH] ci: Allows to use custom clang distro specified by 'CI_CLANG_DISTRO_URL' var --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d44f2fee4b..8d9542888e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -176,6 +176,15 @@ cache: source ./export.sh + # Custom clang + if [[ ! -z "$CI_CLANG_DISTRO_URL" ]]; then + echo "Using custom clang from ${CI_CLANG_DISTRO_URL}" + wget $CI_CLANG_DISTRO_URL + ARCH_NAME=$(basename $CI_CLANG_DISTRO_URL) + tar -x -f $ARCH_NAME + export PATH=$PWD/esp-clang/bin:$PATH + fi + # Custom OpenOCD if [[ ! -z "$OOCD_DISTRO_URL" && "$CI_JOB_STAGE" == "target_test" ]]; then echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"