Skip to content

Commit

Permalink
use make with multiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow authored and SuperDisk committed Nov 24, 2024
1 parent 1d42d4d commit c4fa072
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/scripts/build-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ pushd lame-3.100
./configure --prefix="`realpath ..`/lame-install" --disable-dependency-tracking \
--enable-static --disable-shared --enable-nasm --disable-gtktest \
--disable-decoder --disable-frontend
make

if [ "$(uname)" = "Darwin" ]; then
JOBS=$(sysctl -n hw.ncpu)
else
JOBS=$(nproc)
fi

make -j${JOBS}
make install
popd

Expand All @@ -28,4 +35,4 @@ fi
--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
make -j${JOBS}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
--disable-power --disable-hidapi --disable-sensor --disable-filesystem \
--disable-timers --disable-atomic --disable-file --disable-misc \
--disable-locale --disable-loadso --disable-cpuinfo
make
make -j$(sysctl -n hw.ncpu)
cp build/.libs/libSDL2.a /usr/local/lib
popd
Expand Down

0 comments on commit c4fa072

Please sign in to comment.