From 040f0fb8090ff293a1390efdaeb1ea96071d4112 Mon Sep 17 00:00:00 2001 From: SachinVin Date: Sun, 19 Sep 2021 01:05:57 +0530 Subject: [PATCH] clean up CI yml and add ffmpeg 4.4 --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++------------------ ffmpeg/ffmpeg-4.4.7z | 3 +++ 2 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 ffmpeg/ffmpeg-4.4.7z diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce758dd..82e71a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: [ "*" ] tags: [ "*" ] + paths-ignore: + - "*.7z" pull_request: branches: [ main ] @@ -11,9 +13,13 @@ jobs: macos: runs-on: macos-latest env: - MACOSX_DEPLOYMENT_TARGET: "10.13" SDL_VER: "2.0.16" FFMPEG_VER: "4.4" + MACOSX_DEPLOYMENT_TARGET: "10.13" + CCACHE_CPP2: "yes" + CCACHE_SLOPPINESS: "time_macros" + CC: "ccache clang" + CXX: "ccache clang++" steps: - name: Checkout run: | @@ -29,42 +35,42 @@ jobs: ${{ runner.os }}-macos- - name: Install dependencies run: | - brew install p7zip ninja ccache nasm + brew install p7zip ccache nasm - name: Build SDL run: | export PATH="/usr/local/opt/ccache/libexec:$PATH" - export CCACHE_CPP2=yes - export CCACHE_SLOPPINESS=time_macros - export CC="ccache clang" - export CXX="ccache clang++" - cd SDL - mkdir -p build/${SDL_VER} - cd build + mkdir -p SDL/build/sdl-${SDL_VER} + cd SDL/build + cmake ../ -DBUILD_SHARED_LIBS=1 make -j4 - make install DESTDIR=$(pwd)/${SDL_VER} - ls + make install DESTDIR=$(pwd)/sdl-${SDL_VER} + + 7z a "sdl-${SDL_VER}.7z" sdl-${SDL_VER}/ - name: Build FFMPEG run: | export PATH="/usr/local/opt/ccache/libexec:$PATH" - export CCACHE_CPP2=yes - export CCACHE_SLOPPINESS=time_macros - export CC="ccache clang" - export CXX="ccache clang++" - cd ffmpeg - mkdir -p build/${FFMPEG_VER} - cd build + mkdir -p ffmpeg/build/ffmpeg-${FFMPEG_VER} + cd ffmpeg/build + + # The included lzma is built for 10.15 can generaates linker warnings ../configure --cc="${CC}" --cxx="${CXX}" --enable-shared --disable-static --disable-doc \ --disable-lzma make -j4 make install DESTDIR=$(pwd)/ffmpeg-${FFMPEG_VER} - ls + + 7z a "ffmpeg-${FFMPEG_VER}.7z" ffmpeg-${FFMPEG_VER}/ + - name: Pack + run: | + # move the compiled archive into the artifacts directory to be uploaded + mkdir artifacts + mv "SDL/build/sdl-${SDL_VER}.7z" artifacts/ + mv "ffmpeg/build/ffmpeg-${FFMPEG_VER}.7z" artifacts/ - name: Upload uses: actions/upload-artifact@v2 with: name: macos path: | - SDL/build/sdl-${{ env.SDL_VER }} - ffmpeg/build/ffmpeg-${{ env.FFMPEG_VER }} + artifacts/ diff --git a/ffmpeg/ffmpeg-4.4.7z b/ffmpeg/ffmpeg-4.4.7z new file mode 100644 index 0000000..4d9f1f1 --- /dev/null +++ b/ffmpeg/ffmpeg-4.4.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e49f37fabb5b8f8dbde32f571e358f4a6bed4111d395781538ff5cf75a952da3 +size 7865791