Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/build-baremetal-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
DEBIAN_FRONTEND: "noninteractive"
FFMPEG_COMMIT_ID: "n6.1.1"
BUILD_DIR: "${{ github.workspace }}/build"
BUILD_FFMPEG_DIR: "${{ github.workspace }}/build-ffmpeg"
PREFIX: "${{ github.workspace }}/_install"

defaults:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: 'Install OS level dependencies'
run: |
set -exo pipefail && \
mkdir -p "${PREFIX}" "${BUILD_DIR}/ffmpeg" && \
mkdir -p "${PREFIX}" "${BUILD_DIR}" "${BUILD_FFMPEG_DIR}" && \
sudo apt-get update --fix-missing && \
sudo apt-get full-upgrade -y && \
sudo apt-get install --no-install-recommends -y \
Expand Down Expand Up @@ -76,9 +77,9 @@ jobs:
- name: 'Download and patch ffmpeg repository'
run: |
set -eo pipefail && \
curl -Lf https://github.com/ffmpeg/ffmpeg/archive/${FFMPEG_COMMIT_ID}.tar.gz | tar -zx --strip-components=1 -C "${BUILD_DIR}/ffmpeg"
patch -d "${BUILD_DIR}/ffmpeg" -p1 -i <(cat "${{ github.workspace }}/ffmpeg/"*.patch)
cp "${{ github.workspace }}/ffmpeg/vf_raisr"*.c "${BUILD_DIR}/ffmpeg/libavfilter"
curl -Lf https://github.com/ffmpeg/ffmpeg/archive/${FFMPEG_COMMIT_ID}.tar.gz | tar -zx --strip-components=1 -C "${BUILD_FFMPEG_DIR}"
patch -d "${BUILD_FFMPEG_DIR}" -p1 -i <(cat "${{ github.workspace }}/ffmpeg/"*.patch)
cp "${{ github.workspace }}/ffmpeg/vf_raisr"*.c "${BUILD_FFMPEG_DIR}/libavfilter"

- name: 'Build RAISR from source code'
run: |
Expand All @@ -88,9 +89,9 @@ jobs:
-DCMAKE_CXX_FLAGS="-I/opt/intel/oneapi/ipp/latest/include -I/opt/intel/oneapi/ipp/latest/include/ipp"

- name: 'Configure ffmpeg repository'
working-directory: "ffmpeg"
continue-on-error: true
run: |
cd "${BUILD_FFMPEG_DIR}"
./configure \
--disable-shared \
--disable-debug \
Expand All @@ -109,9 +110,9 @@ jobs:
{ tail -n 100 "${BUILD_DIR}/ffmpeg/ffbuild/config.log" && exit 1; }

- name: 'Build, install and check ffmpeg'
working-directory: "ffmpeg"
continue-on-error: true
run: |
cd "${BUILD_FFMPEG_DIR}"
make clean
make -j"$(nproc)"
sudo -E make install
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/docker-cached-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [ "main", "dev" ]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
Expand All @@ -17,7 +20,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Flex/Dockerfile.ubuntu22.04"
Expand All @@ -28,7 +30,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Xeon/Dockerfile.ubuntu18.04"
Expand All @@ -39,7 +40,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Xeon/Dockerfile.ubuntu20.04"
Expand All @@ -50,7 +50,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Xeon/Dockerfile.ubuntu22.04"
Expand All @@ -61,7 +60,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Xeon/Dockerfile.centos9"
Expand All @@ -72,7 +70,6 @@ jobs:
uses: ./.github/workflows/template-docker-cached-build.yml
permissions:
security-events: write
packages: write
contents: read
with:
docker_file_path: "docker/Xeon/Dockerfile.rockylinux9-mini"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/template-docker-cached-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ jobs:
permissions:
contents: read
security-events: write
packages: write
timeout-minutes: 70
env:
BUILDKIT_STEP_LOG_MAX_SIZE: 50000000
Expand Down
Loading