Skip to content

Commit

Permalink
[esp/ci] add test_esp_dsp_fpu_optimization new gitlab ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
chen.qian committed Dec 25, 2024
1 parent 90d6251 commit ba0c330
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- >
Expand All @@ -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
Expand All @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit ba0c330

Please sign in to comment.