Skip to content

[very draft - don't review] Audio: Sound Dose: Add new component #12051

[very draft - don't review] Audio: Sound Dose: Add new component

[very draft - don't review] Audio: Sound Dose: Add new component #12051

Workflow file for this run

---
# Tools that can save round-trips to github and a lot of time:
#
# yamllint -f parsable pull_request.yml
# pip3 install ruamel.yaml.cmd
# yaml merge-expand pull_request.yml exp.yml &&
# diff -w -u pull_request.yml exp.yml
#
# github.com also has a powerful web editor that can be used without
# committing.
name: testbench
# yamllint disable-line rule:truthy
on:
push:
branches:
- 'main'
- 'stable-**'
- '**-stable'
pull_request:
branches:
- 'main'
- 'stable-**'
- '**-stable'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:
jobs:
build-and-test:
runs-on: ubuntu-24.10
steps:
- name: Checkout SOF repository (PR source)
uses: actions/checkout@v4
with:
path: sof
- name: apt get
run: sudo apt-get update &&
sudo apt-get -y install valgrind ninja-build
octave octave-signal automake autoconf libtool
gettext linux-headers-6.11.0-8
- name: Build Alsa-lib
run: |
cd ${GITHUB_WORKSPACE}
git clone https://github.com/thesofproject/alsa-lib.git
cd alsa-lib
git checkout df8f1cc1ec9d9ee15be5e2c23ad25b9389fd8766 -b build
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools
make install
- name: Build Alsa-utils
run: |
cd ${GITHUB_WORKSPACE}
git clone https://github.com/thesofproject/alsa-utils.git
cd alsa-utils
git checkout 0ffa105942a06cdfa98e5918b8dc82e3cac12792 -b build
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools \
--with-alsa-prefix=${GITHUB_WORKSPACE}/tools \
--with-alsa-inc-prefix=${GITHUB_WORKSPACE}/tools/include \
--with-sysroot=${GITHUB_WORKSPACE}/tools \
--with-udev-rules-dir=${GITHUB_WORKSPACE}/tools \
PKG_CONFIG_PATH=${GITHUB_WORKSPACE}/tools \
LDFLAGS=-L${GITHUB_WORKSPACE}/tools/lib \
--disable-old-symbols \
--enable-alsatopology \
--with-asound-state-dir=${GITHUB_WORKSPACE}/tools/var/lib/alsa \
--with-systemdsystemunitdir=${GITHUB_WORKSPACE}/tools/lib/systemd/system
make install
# testbench needs some topologies.
- name: build test topologies
run: |
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y ||
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y
# build testbench
- name: build testbench
run: |
./sof/scripts/rebuild-testbench.sh ||
./sof/scripts/rebuild-testbench.sh -j 1
# run testbench
- name: run testbench
run: |
./sof/scripts/host-testbench.sh