diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 081f942d5dd801..3b03a94751d2bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -190,9 +190,11 @@ build_and_test: artifacts: paths: - ${BUILD_DIR}/*.log + - ./esp-dsp/scripts/ when: always expire_in: 1 day variables: + TEST_APP_ESP_DSP_CUSTOM_BRANCH: "llvm-optimization-test" after_script: # help to identify that build failed due to OOM - > @@ -202,6 +204,7 @@ build_and_test: [ ! -f "${BUILD_DIR}/lld-tests.log" ] || grep -i "internal compiler error\|Killed" ${BUILD_DIR}/lld-tests.log || true fi script: + - LLVM_PROJECT_PATH=$PWD - export BUILD_PATH=$PWD/${BUILD_DIR} - mkdir -p ${BUILD_PATH} - cmake -G Ninja @@ -210,6 +213,7 @@ build_and_test: -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_INCLUDE_TESTS=OFF + -DLLVM_TOOLCHAIN_ENABLED_TARGETS="RISCV" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Xtensa -B ${BUILD_PATH} 2>&1 > ${BUILD_PATH}/build.log - export CUR_USER=$(whoami); @@ -224,6 +228,11 @@ build_and_test: - chmod o+w ${BUILD_PATH}/lld-tests.log; - runuser -u test_runner -- ninja -C ${BUILD_PATH} check-lld 2>&1 > ${BUILD_PATH}/lld-tests.log; - chown -R ${CUR_USER} ${BUILD_PATH}; + - export PATH=${BUILD_PATH}/bin:${PATH} + - git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_ESP_DSP_CUSTOM_BRANCH -- https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/esp-dsp.git esp-dsp + - pushd $PWD/esp-dsp/ + - echo ${LLVM_PROJECT_PATH}/llvm/utils/update_test_checks.py + - ./test_all.sh ${LLVM_PROJECT_PATH}/llvm/utils/update_test_checks.py .build_linux-gnu_template: extends: .build_toolchain_template