Skip to content

Commit b493794

Browse files
committed
Update workflows for rnnoise
1 parent 914c888 commit b493794

7 files changed

Lines changed: 66 additions & 9 deletions

File tree

.github/workflows/build-distros.yml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,79 @@ jobs:
3535
sed -i 's/^Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
3636
DEBIAN_FRONTEND=noninteractive apt-get -qq update
3737
DEBIAN_FRONTEND=noninteractive apt-get -yqq build-dep mlt
38-
DEBIAN_FRONTEND=noninteractive apt-get -yqq install cmake qt6-base-dev libqt6svg6-dev librnnoise-dev
38+
DEBIAN_FRONTEND=noninteractive apt-get -yqq install autoconf automake git libtool pkg-config wget cmake qt6-base-dev libqt6svg6-dev
39+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
40+
cd /tmp/rnnoise
41+
./autogen.sh
42+
./configure --prefix=/usr/local --enable-shared --disable-static
43+
make -j"$(nproc)"
44+
make install
3945
- name: ubuntu-24.04
4046
image: ubuntu:24.04
4147
setup_script: |
4248
sed -i 's/^Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
4349
DEBIAN_FRONTEND=noninteractive apt-get -qq update
4450
DEBIAN_FRONTEND=noninteractive apt-get -yqq build-dep mlt
45-
DEBIAN_FRONTEND=noninteractive apt-get -yqq install cmake qt6-base-dev libqt6svg6-dev librnnoise-dev
51+
DEBIAN_FRONTEND=noninteractive apt-get -yqq install autoconf automake git libtool pkg-config wget cmake qt6-base-dev libqt6svg6-dev
52+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
53+
cd /tmp/rnnoise
54+
./autogen.sh
55+
./configure --prefix=/usr/local --enable-shared --disable-static
56+
make -j"$(nproc)"
57+
make install
4658
- name: ubuntu-22.04
4759
image: ubuntu:22.04
4860
setup_script: |
4961
sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
5062
DEBIAN_FRONTEND=noninteractive apt-get -qq update
5163
DEBIAN_FRONTEND=noninteractive apt-get -yqq build-dep mlt
52-
DEBIAN_FRONTEND=noninteractive apt-get -yqq install cmake qt6-base-dev libqt6svg6-dev libqt6core5compat6-dev librnnoise-dev
64+
DEBIAN_FRONTEND=noninteractive apt-get -yqq install autoconf automake git libtool pkg-config wget cmake qt6-base-dev libqt6svg6-dev libqt6core5compat6-dev
65+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
66+
cd /tmp/rnnoise
67+
./autogen.sh
68+
./configure --prefix=/usr/local --enable-shared --disable-static
69+
make -j"$(nproc)"
70+
make install
5371
- name: debian-unstable
5472
image: debian:unstable
5573
setup_script: |
5674
echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
5775
apt-get -qq update
5876
apt-get -yqq build-dep mlt
59-
apt-get -yqq install librnnoise-dev
77+
apt-get -yqq install autoconf automake git libtool pkg-config wget
78+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
79+
cd /tmp/rnnoise
80+
./autogen.sh
81+
./configure --prefix=/usr/local --enable-shared --disable-static
82+
make -j"$(nproc)"
83+
make install
6084
- name: debian-testing
6185
image: debian:testing
6286
setup_script: |
6387
echo 'deb-src http://deb.debian.org/debian testing main' >> /etc/apt/sources.list
6488
apt-get -qq update
6589
apt-get -yqq build-dep mlt
66-
apt-get -yqq install cmake qt6-base-dev libqt6svg6-dev librnnoise-dev
90+
apt-get -yqq install autoconf automake git libtool pkg-config wget cmake qt6-base-dev libqt6svg6-dev
91+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
92+
cd /tmp/rnnoise
93+
./autogen.sh
94+
./configure --prefix=/usr/local --enable-shared --disable-static
95+
make -j"$(nproc)"
96+
make install
6797
- name: debian-stable
6898
image: debian:stable
6999
setup_script: |
70100
echo 'deb-src http://deb.debian.org/debian stable main\ndeb-src http://deb.debian.org/debian stable-updates main' >> /etc/apt/sources.list
71101
echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list
72102
apt-get -qq update
73103
apt-get -yqq build-dep mlt
74-
apt-get -yqq install cmake qt6-base-dev libqt6svg6-dev librnnoise-dev
104+
apt-get -yqq install autoconf automake git libtool pkg-config wget cmake qt6-base-dev libqt6svg6-dev
105+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
106+
cd /tmp/rnnoise
107+
./autogen.sh
108+
./configure --prefix=/usr/local --enable-shared --disable-static
109+
make -j"$(nproc)"
110+
make install
75111
- name: fedora-44
76112
image: fedora:44
77113
setup_script: |

.github/workflows/build-linux.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ jobs:
3838
sudo sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
3939
sudo apt-get -qq update
4040
sudo apt-get -yqq build-dep mlt
41-
sudo apt-get -yqq install qt6-base-dev libqt6svg6-dev libqt6core5compat6-dev librnnoise-dev
41+
sudo apt-get -yqq install autoconf automake git libtool pkg-config wget qt6-base-dev libqt6svg6-dev libqt6core5compat6-dev
42+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
43+
pushd /tmp/rnnoise
44+
./autogen.sh
45+
./configure --prefix=/usr/local --enable-shared --disable-static
46+
make -j"$(nproc)"
47+
sudo make install
48+
popd
4249
sudo apt-get -yqq install cmake ninja-build kwalify
4350
cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_TESTING=ON -D SWIG_PYTHON=ON -S . -B build -G Ninja
4451
cmake --build build

.github/workflows/build-msys2-mingw64.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ jobs:
6565
- name: Build C/C++ with CMake
6666
shell: msys2 {0}
6767
run: |
68+
git clone --depth 1 --branch v0.2 https://github.com/xiph/rnnoise.git /tmp/rnnoise
69+
pushd /tmp/rnnoise
70+
./autogen.sh
71+
./configure --prefix=/mingw64 --enable-shared --disable-static
72+
make -j"$(nproc)"
73+
make install
74+
popd
6875
cmake -D CMAKE_BUILD_TYPE=Debug -D MOD_MOVIT=OFF -D SWIG_PYTHON=ON -S . -B build -G Ninja
6976
cmake --build build
7077
cmake --install build

.github/workflows/static-code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
sudo apt-get -yqq install clang-format-14
3636
- name: Run CMake
3737
run: |
38-
cmake -S . -B build -D CLANG_FORMAT=ON -D MOD_SDL2=OFF -D MOD_QT6=OFF -D MOD_AVFORMAT=OFF -D MOD_DECKLINK=OFF -D MOD_FREI0R=OFF -D MOD_GDK=OFF -D MOD_JACKRACK=OFF -D USE_LV2=OFF -D USE_VST2=OFF -D MOD_KDENLIVE=OFF -D MOD_NORMALIZE=OFF -D MOD_OLDFILM=OFF -D MOD_MOVIT=OFF -D MOD_PLUS=OFF -D MOD_PLUSGPL=OFF -D MOD_RESAMPLE=OFF -D MOD_RTAUDIO=OFF -D MOD_RUBBERBAND=OFF -D MOD_SOX=OFF -D MOD_VIDSTAB=OFF -D MOD_VORBIS=OFF -D MOD_XINE=OFF -D MOD_XML=OFF
38+
cmake -S . -B build -D CLANG_FORMAT=ON -D MOD_SDL2=OFF -D MOD_QT6=OFF -D MOD_AVFORMAT=OFF -D MOD_DECKLINK=OFF -D MOD_FREI0R=OFF -D MOD_GDK=OFF -D MOD_JACKRACK=OFF -D USE_LV2=OFF -D USE_VST2=OFF -D MOD_KDENLIVE=OFF -D MOD_NORMALIZE=OFF -D MOD_OLDFILM=OFF -D MOD_MOVIT=OFF -D MOD_PLUS=OFF -D MOD_PLUSGPL=OFF -D MOD_RESAMPLE=OFF -D MOD_RNNOISE=OFF -D MOD_RTAUDIO=OFF -D MOD_RUBBERBAND=OFF -D MOD_SOX=OFF -D MOD_VIDSTAB=OFF -D MOD_VORBIS=OFF -D MOD_XINE=OFF -D MOD_XML=OFF
3939
- name: Run clang-format
4040
run: |
4141
cd build

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ option(MOD_RESAMPLE "Enable Resample module (GPL)" ON)
4141
option(MOD_RTAUDIO "Enable RtAudio module" ON)
4242
option(MOD_RUBBERBAND "Enable Rubberband module (GPL)" ON)
4343
option(MOD_RNNOISE "Enable RNNoise noise-reduction module" ON)
44+
if(WIN32 AND MSVC)
45+
set(MOD_RNNOISE OFF CACHE BOOL "Enable RNNoise noise-reduction module" FORCE)
46+
endif()
4447
option(MOD_SDL1 "Enable SDL1 module" OFF)
4548
option(MOD_SDL2 "Enable SDL2 module" ON)
4649
option(MOD_SOX "Enable SoX module" ON)

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"MOD_RESAMPLE": "ON",
3333
"MOD_RTAUDIO": "ON",
3434
"MOD_RUBBERBAND": "ON",
35+
"MOD_RNNOISE": "OFF",
3536
"MOD_SDL2": "ON",
3637
"MOD_SPATIALAUDIO": "OFF",
3738
"MOD_VIDSTAB": "OFF",

vcpkg.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
"pthreads",
2525
"qtbase",
2626
"qtsvg",
27-
"rnnoise",
27+
{
28+
"name": "rnnoise",
29+
"platform": "!windows"
30+
},
2831
"rtaudio",
2932
"rubberband",
3033
"sdl2",

0 commit comments

Comments
 (0)