Skip to content

Commit

Permalink
fix: make GH workflow trigger when changed itself
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Jun 28, 2024
1 parent 9e48bba commit 7980cd1
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [master]
paths:
- '.github/workflows/build-linux.yaml'
- 'include/**'
- 'src/**'
- 'test/**'
Expand All @@ -18,6 +19,7 @@ on:
branches: [master]
types: [opened, synchronize]
paths:
- '.github/workflows/build-linux.yaml'
- 'include/**'
- 'src/**'
- 'test/**'
Expand Down Expand Up @@ -46,9 +48,21 @@ jobs:
with:
submodules: recursive
- name: install-dependencies
run: xargs sudo apt-get install -y < Aptfile
- name: setup-audio-dev
run: |
xargs sudo apt-get install -y < Aptfile
sudo apt-get install -y pulseaudio
sudo apt-get install -y pulseaudio alsa-utils
pulseaudio --start
pacmd load-module module-null-sink sink_name=DummyOutput sink_properties=device.description=DummyOutput
pacmd set-default-sink DummyOutput
echo "pcm.!default {
type pulse
}
ctl.!default {
type pulse
}" > ~/.asoundrc
sudo usermod -aG audio $USER
pulseaudio --kill && pulseaudio --start
- name: setup-rust-cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -60,7 +74,9 @@ jobs:
config: |
paths-ignore: [vendor]
- name: build
run: make -j$(nproc)
run: |
PULSE_SERVER="unix:/run/user/$(id -u)/pulse/native"
sudo -s -u ${USER} bash -c "make -j$(nproc)"
- name: build-editor
run: make editor -j$(nproc)
- name: test
Expand Down

0 comments on commit 7980cd1

Please sign in to comment.