mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 17:54:58 +01:00
Merge pull request #369 from MaSzyna-EU07/fix/ci-openal-audio-backends
fix(ci): build OpenAL Soft with the PipeWire, PulseAudio and ALSA bac…
This commit is contained in:
12
.github/workflows/build_bin.yml
vendored
12
.github/workflows/build_bin.yml
vendored
@@ -221,8 +221,13 @@ jobs:
|
|||||||
| sudo tee /etc/apt/apt.conf.d/80-ci-retries > /dev/null
|
| sudo tee /etc/apt/apt.conf.d/80-ci-retries > /dev/null
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
|
# libasound2-dev, libpulse-dev and libpipewire-0.3-dev: the headers of OpenAL Soft's audio backends (built below).
|
||||||
|
# Without them it builds with OSS only, which modern distributions and the Steam Linux Runtime don't have: no sound.
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
libasound2-dev \
|
||||||
|
libpulse-dev \
|
||||||
|
libpipewire-0.3-dev \
|
||||||
libgl1-mesa-dev \
|
libgl1-mesa-dev \
|
||||||
libglew-dev \
|
libglew-dev \
|
||||||
libglfw3-dev \
|
libglfw3-dev \
|
||||||
@@ -249,12 +254,17 @@ jobs:
|
|||||||
https://github.com/kcat/openal-soft.git \
|
https://github.com/kcat/openal-soft.git \
|
||||||
/tmp/openal-soft
|
/tmp/openal-soft
|
||||||
|
|
||||||
|
# the backends are loaded with dlopen at run time (ALSOFT_DLOPEN), so the bundled library needs none of them;
|
||||||
|
# REQUIRE makes a missing header fail the build instead of shipping a library without sound
|
||||||
cmake \
|
cmake \
|
||||||
-S /tmp/openal-soft \
|
-S /tmp/openal-soft \
|
||||||
-B /tmp/openal-soft/build \
|
-B /tmp/openal-soft/build \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DALSOFT_EXAMPLES=OFF \
|
-DALSOFT_EXAMPLES=OFF \
|
||||||
-DALSOFT_UTILS=OFF
|
-DALSOFT_UTILS=OFF \
|
||||||
|
-DALSOFT_REQUIRE_PIPEWIRE=ON \
|
||||||
|
-DALSOFT_REQUIRE_PULSEAUDIO=ON \
|
||||||
|
-DALSOFT_REQUIRE_ALSA=ON
|
||||||
|
|
||||||
cmake \
|
cmake \
|
||||||
--build /tmp/openal-soft/build \
|
--build /tmp/openal-soft/build \
|
||||||
|
|||||||
Reference in New Issue
Block a user