1313 DEBIAN_FRONTEND : " noninteractive"
1414 FFMPEG_COMMIT_ID : " n6.1.1"
1515 BUILD_DIR : " ${{ github.workspace }}/build"
16+ BUILD_FFMPEG_DIR : " ${{ github.workspace }}/build-ffmpeg"
1617 PREFIX : " ${{ github.workspace }}/_install"
1718
1819defaults :
4445 - name : ' Install OS level dependencies'
4546 run : |
4647 set -exo pipefail && \
47- mkdir -p "${PREFIX}" "${BUILD_DIR}/ffmpeg " && \
48+ mkdir -p "${PREFIX}" "${BUILD_DIR}" "${BUILD_FFMPEG_DIR} " && \
4849 sudo apt-get update --fix-missing && \
4950 sudo apt-get full-upgrade -y && \
5051 sudo apt-get install --no-install-recommends -y \
7677 - name : ' Download and patch ffmpeg repository'
7778 run : |
7879 set -eo pipefail && \
79- curl -Lf https://github.com/ffmpeg/ffmpeg/archive/${FFMPEG_COMMIT_ID}.tar.gz | tar -zx --strip-components=1 -C "${BUILD_DIR}/ffmpeg "
80- patch -d "${BUILD_DIR}/ffmpeg " -p1 -i <(cat "${{ github.workspace }}/ffmpeg/"*.patch)
81- cp "${{ github.workspace }}/ffmpeg/vf_raisr"*.c "${BUILD_DIR}/ffmpeg /libavfilter"
80+ curl -Lf https://github.com/ffmpeg/ffmpeg/archive/${FFMPEG_COMMIT_ID}.tar.gz | tar -zx --strip-components=1 -C "${BUILD_FFMPEG_DIR} "
81+ patch -d "${BUILD_FFMPEG_DIR} " -p1 -i <(cat "${{ github.workspace }}/ffmpeg/"*.patch)
82+ cp "${{ github.workspace }}/ffmpeg/vf_raisr"*.c "${BUILD_FFMPEG_DIR} /libavfilter"
8283
8384 - name : ' Build RAISR from source code'
8485 run : |
8889 -DCMAKE_CXX_FLAGS="-I/opt/intel/oneapi/ipp/latest/include -I/opt/intel/oneapi/ipp/latest/include/ipp"
8990
9091 - name : ' Configure ffmpeg repository'
91- working-directory : " ffmpeg"
9292 continue-on-error : true
9393 run : |
94+ cd "${BUILD_FFMPEG_DIR}"
9495 ./configure \
9596 --disable-shared \
9697 --disable-debug \
@@ -109,9 +110,9 @@ jobs:
109110 { tail -n 100 "${BUILD_DIR}/ffmpeg/ffbuild/config.log" && exit 1; }
110111
111112 - name : ' Build, install and check ffmpeg'
112- working-directory : " ffmpeg"
113113 continue-on-error : true
114114 run : |
115+ cd "${BUILD_FFMPEG_DIR}"
115116 make clean
116117 make -j"$(nproc)"
117118 sudo -E make install
0 commit comments