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 b64dc9f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 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,22 @@ 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
USERNAME=$(whoami)
sudo usermod -aG audio $USERNAME
pulseaudio --kill && pulseaudio --start
- name: setup-rust-cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -60,7 +75,7 @@ jobs:
config: |
paths-ignore: [vendor]
- name: build
run: make -j$(nproc)
run: PULSE_SERVER="unix:/run/user/$(id -u)/pulse/native" make -j$(nproc)
- name: build-editor
run: make editor -j$(nproc)
- name: test
Expand Down

0 comments on commit b64dc9f

Please sign in to comment.