Skip to content

Commit c3f6b16

Browse files
committed
test-docker-on-testbench
Signed-off-by: Christopher Turner <christopher.g.turner@intel.com>
1 parent 17896c4 commit c3f6b16

1 file changed

Lines changed: 30 additions & 49 deletions

File tree

.github/workflows/testbench.yml

Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -29,63 +29,44 @@ on:
2929
workflow_call:
3030

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

3536
steps:
36-
- name: Checkout SOF repository (PR source)
37-
uses: actions/checkout@v4
38-
with:
39-
path: sof
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
4042

4143
- name: apt get
4244
run: sudo apt-get update &&
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
45+
sudo apt-get -y install valgrind alsa-utils libasound2-dev ninja-build
46+
octave octave-signal
7447

7548
# testbench needs some topologies.
7649
- name: build test topologies
77-
run: |
78-
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y ||
50+
continue-on-error: true
51+
run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
52+
./scripts/build-tools.sh -A -Y ||
7953
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
80-
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y
54+
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
55+
./scripts/build-tools.sh -A -Y
56+
57+
# Verify alsatplg version
58+
# - name: verify alsa tools installation
59+
# run: |
60+
# echo "Checking ALSA tools installation in ./tools/bin"
61+
# ls -l /tmp/tools/bin
62+
# echo "Verifying alsatplg version"
63+
# /tmp/tools/bin/alsatplg --version
64+
# echo "check topolgy dir"
65+
# ls -l /tmp/tools/topology/topology2
8166

82-
# build testbench
83-
- name: build testbench
84-
run: |
85-
./sof/scripts/rebuild-testbench.sh ||
86-
./sof/scripts/rebuild-testbench.sh -j 1
67+
# - name: build testbench
68+
# run: ./scripts/rebuild-testbench.sh ||
69+
# ./scripts/rebuild-testbench.sh -j 1
8770

88-
# run testbench
89-
- name: run testbench
90-
run: |
91-
./sof/scripts/host-testbench.sh
71+
# - name: run testbench
72+
# run: ./scripts/host-testbench.sh

0 commit comments

Comments
 (0)