Skip to content

Commit

Permalink
Duplicate the code like a moron
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDisk committed Dec 13, 2023
1 parent 61b3860 commit d56043f
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d56043f

Please sign in to comment.