File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,21 @@ on: [push, pull_request]
55jobs :
66 semu-linux :
77 runs-on : ubuntu-24.04
8+ strategy :
9+ matrix :
10+ dependency :
11+ - libpulse-dev
12+ - none
813 steps :
9- - uses : actions/checkout@v4
14+ - name : checkout code
15+ uses : actions/checkout@v4
1016 - name : install-dependencies
1117 run : |
1218 sudo apt-get install build-essential device-tree-compiler expect
1319 sudo apt-get install libasound2-dev libudev-dev
20+ - name : install sound multiplexer ${{ matrix.dependency }}
21+ if : matrix.dependency != 'none'
22+ run : sudo apt-get install ${{ matrix.dependency }}
1423 - name : default build
1524 run : make
1625 shell : bash
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ endif
6262
6363ifeq ($(UNAME_S ) ,Linux)
6464 # Check ALSA installation
65- ifeq (0 , $(call check-alsa))
65+ ifeq (1 , $(call check-alsa))
6666 $(warning No libasound installed. Check libasound in advance.)
6767 ENABLE_VIRTIOSND := 0
6868 endif
6969endif
7070ifeq ($(UNAME_S ) ,Darwin)
71- ifeq (0 , $(call check-coreaudio))
71+ ifeq (1 , $(call check-coreaudio))
7272 $(warning No CoreAudio installed Check AudioToolbox in advance.)
7373 ENABLE_VIRTIOSND := 0
7474 endif
Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ endef
3434
3535# Check ALSA installation
3636define check-alsa
37- $(shell $(call create-alsa-prog) | $(CC ) -x c -lasound -o /dev/null > /dev/null 2> /dev/null -
38- && echo $$? )
37+ $(shell $(call create-alsa-prog) | $(CC ) -x c - - lasound -o /dev/null > /dev/null 2> /dev/null
38+ && echo 0 || echo 1 )
3939endef
4040
4141# Check PulseAudio installation
4242define check-pa
43- $(shell $(call create-pa-prog) | $(CC ) -x c -lpulse -o /dev/null - && echo 0 || echo 1)
43+ $(shell $(call create-pa-prog) | $(CC ) -x c - - lpulse -o /dev/null && echo 0 || echo 1)
4444endef
4545
4646# Check CoreAudio installation
4747define check-coreaudio
48- $(shell $(call create-ca-prog) | $(CC ) -x c -framework AudioToolbox -o /dev/null > /dev/null 2> /dev/null -
49- && echo $$? )
48+ $(shell $(call create-ca-prog) | $(CC ) -x c - - framework AudioToolbox -o /dev/null > /dev/null 2> /dev/null
49+ && echo 0 || echo 1 )
5050endef
You can’t perform that action at this time.
0 commit comments