From 6878a149a8f336f431fe62380553248ae9bff0bd Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Thu, 27 Jun 2024 18:56:21 +0200 Subject: [PATCH] fix: make GH workflow trigger when changed itself --- .github/workflows/build-linux.yaml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index ba35d92..a85ab2d 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -4,6 +4,7 @@ on: push: branches: [master] paths: + - '.github/workflows/build-linux.yaml' - 'include/**' - 'src/**' - 'test/**' @@ -18,6 +19,7 @@ on: branches: [master] types: [opened, synchronize] paths: + - '.github/workflows/build-linux.yaml' - 'include/**' - 'src/**' - 'test/**' @@ -46,9 +48,23 @@ 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 + su - $USER + pulseaudio --kill && pulseaudio --start + id - name: setup-rust-cache uses: Swatinem/rust-cache@v2 with: @@ -60,7 +76,9 @@ jobs: config: | paths-ignore: [vendor] - name: build - run: make -j$(nproc) + run: | + id + PULSE_SERVER="unix:/run/user/$(id -u)/pulse/native" make -j$(nproc) - name: build-editor run: make editor -j$(nproc) - name: test