mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed Github CI macOS build.
This commit is contained in:
parent
ce413f2946
commit
245be4cd63
2 changed files with 14 additions and 4 deletions
14
.github/workflows/mac.yml
vendored
14
.github/workflows/mac.yml
vendored
|
@ -205,6 +205,16 @@ jobs:
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
sudo cp -R opus-cache/. /
|
sudo cp -R opus-cache/. /
|
||||||
|
|
||||||
|
- name: Rnnoise.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone $GIT/desktop-app/rnnoise.git
|
||||||
|
mkdir -p rnnoise/out/Debug
|
||||||
|
cd rnnoise/out/Debug
|
||||||
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../..
|
||||||
|
ninja
|
||||||
|
|
||||||
- name: Libiconv cache.
|
- name: Libiconv cache.
|
||||||
id: cache-libiconv
|
id: cache-libiconv
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
@ -240,7 +250,7 @@ jobs:
|
||||||
|
|
||||||
git clone $GIT/FFmpeg/FFmpeg.git ffmpeg
|
git clone $GIT/FFmpeg/FFmpeg.git ffmpeg
|
||||||
cd ffmpeg
|
cd ffmpeg
|
||||||
git checkout release/4.2
|
git checkout release/4.4
|
||||||
CFLAGS=`freetype-config --cflags`
|
CFLAGS=`freetype-config --cflags`
|
||||||
LDFLAGS=`freetype-config --libs`
|
LDFLAGS=`freetype-config --libs`
|
||||||
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
|
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
|
||||||
|
@ -317,7 +327,6 @@ jobs:
|
||||||
--enable-decoder=pcm_u32be \
|
--enable-decoder=pcm_u32be \
|
||||||
--enable-decoder=pcm_u32le \
|
--enable-decoder=pcm_u32le \
|
||||||
--enable-decoder=pcm_u8 \
|
--enable-decoder=pcm_u8 \
|
||||||
--enable-decoder=pcm_zork \
|
|
||||||
--enable-decoder=vorbis \
|
--enable-decoder=vorbis \
|
||||||
--enable-decoder=wavpack \
|
--enable-decoder=wavpack \
|
||||||
--enable-decoder=wmalossless \
|
--enable-decoder=wmalossless \
|
||||||
|
@ -490,6 +499,7 @@ jobs:
|
||||||
cmake -G Ninja \
|
cmake -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DTG_OWT_SPECIAL_TARGET=mac \
|
-DTG_OWT_SPECIAL_TARGET=mac \
|
||||||
|
-DTG_OWT_BUILD_AUDIO_BACKENDS=OFF \
|
||||||
-DTG_OWT_LIBJPEG_INCLUDE_PATH=$PREFIX/include \
|
-DTG_OWT_LIBJPEG_INCLUDE_PATH=$PREFIX/include \
|
||||||
-DTG_OWT_OPENSSL_INCLUDE_PATH=`pwd`/../../../openssl_$OPENSSL_VER/include \
|
-DTG_OWT_OPENSSL_INCLUDE_PATH=`pwd`/../../../openssl_$OPENSSL_VER/include \
|
||||||
-DTG_OWT_OPUS_INCLUDE_PATH=$PREFIX/include/opus \
|
-DTG_OWT_OPUS_INCLUDE_PATH=$PREFIX/include/opus \
|
||||||
|
|
|
@ -112,12 +112,12 @@ Go to ***BuildPath*** and run
|
||||||
cd out
|
cd out
|
||||||
mkdir Debug
|
mkdir Debug
|
||||||
cd Debug
|
cd Debug
|
||||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../..
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../..
|
||||||
ninja
|
ninja
|
||||||
cd ..
|
cd ..
|
||||||
mkdir Release
|
mkdir Release
|
||||||
cd Release
|
cd Release
|
||||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../..
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../..
|
||||||
ninja
|
ninja
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue