Skip to content

Commit 3790a63

Browse files
committed
fix: make GH workflow trigger when changed itself
1 parent 9e48bba commit 3790a63

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/build-linux.yaml

+22-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [master]
66
paths:
7+
- '.github/workflows/build-linux.yaml'
78
- 'include/**'
89
- 'src/**'
910
- 'test/**'
@@ -18,6 +19,7 @@ on:
1819
branches: [master]
1920
types: [opened, synchronize]
2021
paths:
22+
- '.github/workflows/build-linux.yaml'
2123
- 'include/**'
2224
- 'src/**'
2325
- 'test/**'
@@ -46,9 +48,24 @@ jobs:
4648
with:
4749
submodules: recursive
4850
- name: install-dependencies
51+
run: xargs sudo apt-get install -y < Aptfile
52+
- name: setup-audio-dev
4953
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+
newgrp audio
66+
exec newgrp $USER
67+
pulseaudio --kill && pulseaudio --start
68+
id
5269
- name: setup-rust-cache
5370
uses: Swatinem/rust-cache@v2
5471
with:
@@ -60,7 +77,9 @@ jobs:
6077
config: |
6178
paths-ignore: [vendor]
6279
- name: build
63-
run: make -j$(nproc)
80+
run: |
81+
id
82+
PULSE_SERVER="unix:/run/user/$(id -u)/pulse/native" make -j$(nproc)
6483
- name: build-editor
6584
run: make editor -j$(nproc)
6685
- name: test

0 commit comments

Comments
 (0)