From ec2c06dfb7eb28c81bf81dca62dc031b62614b49 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 15 Jul 2021 10:32:47 +0200 Subject: [PATCH] GitHub CI [Linux]: install FFmpeg+deps only if cached Otherwise installed by download_build_ffmpeg.sh --- .github/scripts/Linux/download_build_ffmpeg.sh | 2 ++ .github/workflows/ccpp.yml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/Linux/download_build_ffmpeg.sh b/.github/scripts/Linux/download_build_ffmpeg.sh index 60580f010..ce5459675 100755 --- a/.github/scripts/Linux/download_build_ffmpeg.sh +++ b/.github/scripts/Linux/download_build_ffmpeg.sh @@ -41,3 +41,5 @@ done --enable-libsvtvp9 \ make -j $(nproc) +sudo make install +sudo ldconfig diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 5498fb340..6b9a369da 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -87,7 +87,8 @@ jobs: - name: Build FFmpeg if: steps.cache-ffmpeg.outputs.cache-hit != 'true' run: .github/scripts/Linux/download_build_ffmpeg.sh - - name: Install FFmpeg + - name: Install Cached FFmpeg + if: steps.cache-ffmpeg.outputs.cache-hit == 'true' run: .github/scripts/Linux/install_ffmpeg.sh - name: configure run: "./autogen.sh --with-cuda-host-compiler=$CUDA_HOST_COMPILER --enable-plugins ${{ env.CUDA_FEATURES }} ${{ env.FEATURES }} --enable-alsa $NDI --enable-v4l2"