Repository navigation
audio: dax: fixes regarding the results of coverity check #3264
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: "Zephyr Unit tests" | |
| # yamllint disable-line rule:truthy | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| permissions: | |
| contents: read | |
| # Group workflows together to cancel outdated runs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| zephyr-utests: | |
| name: Zephyr Unit Tests (ZTest) | |
| runs-on: ubuntu-26.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install clang llvm ninja-build device-tree-compiler \ | |
| python3-pyelftools | |
| # Install multilib packages required for native_sim i386 target | |
| sudo apt-get install gcc-multilib g++-multilib | |
| - name: Checkout SOF repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| path: ./workspace/sof | |
| fetch-depth: 2 | |
| filter: 'tree:0' | |
| - name: West update | |
| run: | | |
| cd workspace/sof | |
| pip3 install west | |
| west init -l | |
| west update --narrow --fetch-opt=--filter=tree:0 | |
| - name: Install Python dependencies | |
| run: | | |
| cd workspace/zephyr | |
| pip3 install --user -r scripts/requirements.txt | |
| - name: Build and run unit tests | |
| run: | | |
| cd workspace | |
| export ZEPHYR_TOOLCHAIN_VARIANT=host/llvm | |
| # DEBUGINFOD_URLS must stay empty: otherwise llvm-symbolizer queries | |
| # debuginfod while LSan prints a leak report, which takes longer than | |
| # twister's post-verdict grace period. Twister then kills the binary, | |
| # ignores its exit code and reports the leaking suite as passed. | |
| DEBUGINFOD_URLS= west twister --testsuite-root sof/test/ztest/unit/ \ | |
| --platform native_sim --enable-asan --enable-lsan --verbose --inline-logs | |
| # This part is commented out because it is not needed at the moment. | |
| # - name: Install Zephyr SDK | |
| # run: | | |
| # cd workspace/zephyr | |
| # west sdk install --version 0.16.9 -t xtensa-intel_ace30_ptl_zephyr-elf |