Skip to content

Commit c0f6e16

Browse files
committed
github: workflow: update testbench workflow to use local ALSA tools
Update testbench to build without docker and use a local ALSA lib and ALSA utils version from SOF ALSA git to align with latest topology developments. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent cfc661d commit c0f6e16

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed

.github/workflows/testbench.yml

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,63 @@ on:
2929
workflow_call:
3030

3131
jobs:
32-
33-
build-run:
34-
runs-on: ubuntu-22.04
32+
build-and-test:
33+
runs-on: ubuntu-24.10
3534

3635
steps:
37-
- uses: actions/checkout@v4
38-
with: {fetch-depth: 0, filter: 'tree:0'}
39-
40-
- name: docker
41-
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
36+
- name: Checkout SOF repository (PR source)
37+
uses: actions/checkout@v4
38+
with:
39+
path: sof
4240

4341
- name: apt get
4442
run: sudo apt-get update &&
45-
sudo apt-get -y install valgrind alsa-utils libasound2-dev ninja-build
46-
octave octave-signal
43+
sudo apt-get -y install valgrind ninja-build
44+
octave octave-signal automake autoconf libtool
45+
gettext linux-headers-6.11.0-8
46+
47+
- name: Build Alsa-lib
48+
run: |
49+
cd ${GITHUB_WORKSPACE}
50+
git clone https://github.com/thesofproject/alsa-lib.git
51+
cd alsa-lib
52+
git checkout df8f1cc1ec9d9ee15be5e2c23ad25b9389fd8766 -b build
53+
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools
54+
make install
55+
56+
- name: Build Alsa-utils
57+
run: |
58+
cd ${GITHUB_WORKSPACE}
59+
git clone https://github.com/thesofproject/alsa-utils.git
60+
cd alsa-utils
61+
git checkout 0ffa105942a06cdfa98e5918b8dc82e3cac12792 -b build
62+
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools \
63+
--with-alsa-prefix=${GITHUB_WORKSPACE}/tools \
64+
--with-alsa-inc-prefix=${GITHUB_WORKSPACE}/tools/include \
65+
--with-sysroot=${GITHUB_WORKSPACE}/tools \
66+
--with-udev-rules-dir=${GITHUB_WORKSPACE}/tools \
67+
PKG_CONFIG_PATH=${GITHUB_WORKSPACE}/tools \
68+
LDFLAGS=-L${GITHUB_WORKSPACE}/tools/lib \
69+
--disable-old-symbols \
70+
--enable-alsatopology \
71+
--with-asound-state-dir=${GITHUB_WORKSPACE}/tools/var/lib/alsa \
72+
--with-systemdsystemunitdir=${GITHUB_WORKSPACE}/tools/lib/systemd/system
73+
make install
4774
4875
# testbench needs some topologies.
4976
- name: build test topologies
50-
run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
51-
./scripts/build-tools.sh -Y ||
77+
run: |
78+
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y ||
5279
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
53-
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
54-
./scripts/build-tools.sh -Y
80+
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y
5581
82+
# build testbench
5683
- name: build testbench
57-
run: ./scripts/rebuild-testbench.sh ||
58-
./scripts/rebuild-testbench.sh -j 1
84+
run: |
85+
./sof/scripts/rebuild-testbench.sh ||
86+
./sof/scripts/rebuild-testbench.sh -j 1
5987
88+
# run testbench
6089
- name: run testbench
61-
run: ./scripts/host-testbench.sh
90+
run: |
91+
./sof/scripts/host-testbench.sh

0 commit comments

Comments
 (0)