From 7e0cd04577477d367be8dbe5d5162a7ccfa6b781 Mon Sep 17 00:00:00 2001 From: Esther Date: Mon, 19 Aug 2024 11:00:05 -0400 Subject: [PATCH] pulseaudio --- .github/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index dda7e63..e972a4b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -92,10 +92,13 @@ jobs: - name: Test events env: SOUNDFONTS_DIRECTORY: $HOME/Documents/cacophony/soundfonts + # https://stackoverflow.com/a/72451446 run: | - sudo modprobe snd-dummy + sudo apt install pulseaudio xvfb -y + pactl load-module module-null-sink sink_name=auto_null + pactl set-default-sink auto_null + pulseaudio --start mkdir -p ${{ env.SOUNDFONTS_DIRECTORY }} cp -r test_files/soundfonts/* ${{ env.SOUNDFONTS_DIRECTORY }} - sudo apt install alsa-utils xvfb -y for f in test_files/events/*.txt ; do echo "Quit\nQuitPanelYes" >> $f && xvfb-run cargo run -- --events $f ; done if: matrix.os == 'ubuntu-24.04' \ No newline at end of file