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]
5
5
jobs :
6
6
semu-linux :
7
7
runs-on : ubuntu-24.04
8
+ strategy :
9
+ matrix :
10
+ dependency :
11
+ - libpulse-dev
12
+ - none
8
13
steps :
9
- - uses : actions/checkout@v4
14
+ - name : checkout code
15
+ uses : actions/checkout@v4
10
16
- name : install-dependencies
11
17
run : |
12
18
sudo apt-get install build-essential device-tree-compiler expect
13
19
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 }}
14
23
- name : default build
15
24
run : make
16
25
shell : bash
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ endif
62
62
63
63
ifeq ($(UNAME_S ) ,Linux)
64
64
# Check ALSA installation
65
- ifeq (0 , $(call check-alsa))
65
+ ifeq (1 , $(call check-alsa))
66
66
$(warning No libasound installed. Check libasound in advance.)
67
67
ENABLE_VIRTIOSND := 0
68
68
endif
69
69
endif
70
70
ifeq ($(UNAME_S ) ,Darwin)
71
- ifeq (0 , $(call check-coreaudio))
71
+ ifeq (1 , $(call check-coreaudio))
72
72
$(warning No CoreAudio installed Check AudioToolbox in advance.)
73
73
ENABLE_VIRTIOSND := 0
74
74
endif
Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ endef
34
34
35
35
# Check ALSA installation
36
36
define 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 )
39
39
endef
40
40
41
41
# Check PulseAudio installation
42
42
define 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)
44
44
endef
45
45
46
46
# Check CoreAudio installation
47
47
define 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 )
50
50
endef
You can’t perform that action at this time.
0 commit comments