Skip to content

Commit 7980cd1

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

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/build-linux.yaml

+19-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,21 @@ 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+
pulseaudio --kill && pulseaudio --start
5266
- name: setup-rust-cache
5367
uses: Swatinem/rust-cache@v2
5468
with:
@@ -60,7 +74,9 @@ jobs:
6074
config: |
6175
paths-ignore: [vendor]
6276
- name: build
63-
run: make -j$(nproc)
77+
run: |
78+
PULSE_SERVER="unix:/run/user/$(id -u)/pulse/native"
79+
sudo -s -u ${USER} bash -c "make -j$(nproc)"
6480
- name: build-editor
6581
run: make editor -j$(nproc)
6682
- name: test

0 commit comments

Comments
 (0)