File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [master]
6
6
paths :
7
+ - ' .github/workflows/build-linux.yaml'
7
8
- ' include/**'
8
9
- ' src/**'
9
10
- ' test/**'
18
19
branches : [master]
19
20
types : [opened, synchronize]
20
21
paths :
22
+ - ' .github/workflows/build-linux.yaml'
21
23
- ' include/**'
22
24
- ' src/**'
23
25
- ' test/**'
46
48
with :
47
49
submodules : recursive
48
50
- name : install-dependencies
51
+ run : xargs sudo apt-get install -y < Aptfile
52
+ - name : setup-audio-dev
49
53
run : |
50
- xargs sudo apt-get install -y < Aptfile
51
- sudo apt-get install -y pulseaudio
54
+ sudo apt-get install -y pulseaudio alsa-utils
55
+ pulseaudio --start
56
+ pacmd load-module module-null-sink sink_name=DummyOutput sink_properties=device.description=DummyOutput
57
+ pacmd set-default-sink DummyOutput
58
+ echo "pcm.!default {
59
+ type pulse
60
+ }
61
+ ctl.!default {
62
+ type pulse
63
+ }" > ~/.asoundrc
64
+ sudo usermod -aG audio $USER
65
+ pulseaudio --kill && pulseaudio --start
52
66
- name : setup-rust-cache
53
67
uses : Swatinem/rust-cache@v2
54
68
with :
60
74
config : |
61
75
paths-ignore: [vendor]
62
76
- name : build
63
- run : make -j$(nproc)
77
+ run : |
78
+ sudo -s -u ${USER} bash -c "PULSE_SERVER=\"unix:/run/user/$(id -u)/pulse/native\" make -j$(nproc)"
64
79
- name : build-editor
65
80
run : make editor -j$(nproc)
66
81
- name : test
You can’t perform that action at this time.
0 commit comments