From d56043f5ec479ca8a2c5391259a8421f82d51b1a Mon Sep 17 00:00:00 2001 From: Nick Faro Date: Tue, 12 Dec 2023 20:51:50 -0500 Subject: [PATCH] Duplicate the code like a moron --- .github/workflows/build.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d6292f..4294e9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,7 +78,30 @@ jobs: yasm - name: Compile FFmpeg - shell: ${{ (matrix.name == 'Windows') && 'msys2 {0}' || 'bash' }} + if: matrix.name != 'Windows' + shell: bash + run: | + # HACK: MacOS 12 doesn't have realpath. 13 does, but GH Actions don't have it in non-beta yet. + _realpath() { + cd "$(dirname "$0")" ; pwd -P + } + + curl -Lo lame.tar.gz 'https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz' + tar xf lame.tar.gz + pushd lame-3.100 + ./configure --prefix="`_realpath ..`/lame-install" --disable-dependency-tracking --disable-shared --enable-nasm --disable-gtktest --disable-decoder --disable-frontend + make + make install + popd + curl -Lo ffmpeg.tar.xz 'http://ffmpeg.org/releases/ffmpeg-4.4.tar.xz' + tar xf ffmpeg.tar.xz + cd ffmpeg-4.4 + ./configure --extra-ldflags="-static" --disable-debug --enable-lto --disable-programs --enable-ffmpeg --disable-doc --disable-everything --enable-protocol=pipe --enable-protocol=file --enable-filter=aresample --enable-decoder=pcm_f32le --enable-demuxer=pcm_f32le --enable-encoder=flac --enable-muxer=ogg --enable-muxer=flac --enable-encoder=pcm_s16le --enable-muxer=wav --enable-libmp3lame --enable-encoder=libmp3lame --enable-muxer=mp3 --extra-cflags="-I`_realpath ../lame-install/include`" --extra-ldflags="-L`_realpath ../lame-install/lib`" + make + + - name: Compile FFmpeg + if: matrix.name == 'Windows' + shell: msys2 {0} run: | # HACK: MacOS 12 doesn't have realpath. 13 does, but GH Actions don't have it in non-beta yet. _realpath() {