Skip to content

Commit 3d3aeff

Browse files
rm [DPDK] and prettier for workflows
1 parent c027a7d commit 3d3aeff

File tree

8 files changed

+220
-220
lines changed

8 files changed

+220
-220
lines changed

.github/workflows/base_build.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Base Build
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88
workflow_dispatch:
99

1010
env:
@@ -27,80 +27,80 @@ concurrency:
2727

2828
jobs:
2929
build-baremetal-ubuntu:
30-
runs-on: 'ubuntu-22.04'
30+
runs-on: "ubuntu-22.04"
3131
timeout-minutes: 120
3232
steps:
33-
- name: 'Harden Runner'
34-
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
35-
with:
36-
egress-policy: audit
37-
38-
- name: 'Checkout repository'
39-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40-
41-
- name: 'Install OS level dependencies'
42-
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies'
43-
44-
- name: 'Check local dependencies build cache'
45-
id: load-local-dependencies-cache
46-
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
47-
with:
48-
path: ${{ env.BUILD_DIR }}
49-
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
50-
51-
- name: 'Download, unpack and patch build dependencies'
52-
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
53-
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies'
54-
55-
- name: 'Clone and patch ffmpeg 6.1 and 7.0'
56-
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
57-
run: |
58-
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1"
59-
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0"
60-
61-
- name: 'Build and Install xdp and libbpf'
62-
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools'
63-
64-
- name: 'Build and Install libfabric'
65-
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics'
66-
67-
- name: 'Build and Install the DPDK'
68-
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk'
69-
70-
- name: 'Build and Install the MTL'
71-
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl'
72-
73-
- name: 'Build and Install JPEG XS'
74-
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs'
75-
76-
- name: 'Build and Install JPEG XS ffmpeg plugin'
77-
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin'
78-
79-
- name: 'Build gRPC and dependencies'
80-
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc'
81-
82-
- name: 'Build MCM SDK and Media Proxy'
83-
run: eval 'source scripts/common.sh && ./build.sh "${PREFIX_DIR}"'
84-
85-
- name: 'Build FFmpeg 6.1 with MCM plugin'
86-
working-directory: ${{ github.workspace }}/ffmpeg-plugin
87-
run: |
88-
./configure-ffmpeg.sh "6.1" --disable-doc --disable-debug && \
89-
./build-ffmpeg.sh "6.1"
90-
91-
- name: 'Build FFmpeg 7.0 with MCM plugin'
92-
working-directory: ${{ github.workspace }}/ffmpeg-plugin
93-
run: |
94-
./configure-ffmpeg.sh "7.0" --disable-doc --disable-debug && \
95-
./build-ffmpeg.sh "7.0"
96-
97-
- name: 'upload media-proxy and mcm binaries'
98-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
99-
with:
100-
name: mcm-build
101-
path: |
102-
${{ env.BUILD_DIR }}/mcm/bin/media_proxy
103-
${{ env.BUILD_DIR }}/mcm/bin/mesh-agent
104-
${{ env.BUILD_DIR }}/mcm/lib/libmcm_dp.so.*
105-
${{ env.BUILD_DIR }}/ffmpeg-6-1/ffmpeg
106-
${{ env.BUILD_DIR }}/ffmpeg-7-0/ffmpeg
33+
- name: "Harden Runner"
34+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
35+
with:
36+
egress-policy: audit
37+
38+
- name: "Checkout repository"
39+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
41+
- name: "Install OS level dependencies"
42+
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies'
43+
44+
- name: "Check local dependencies build cache"
45+
id: load-local-dependencies-cache
46+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
47+
with:
48+
path: ${{ env.BUILD_DIR }}
49+
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
50+
51+
- name: "Download, unpack and patch build dependencies"
52+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
53+
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies'
54+
55+
- name: "Clone and patch ffmpeg 6.1 and 7.0"
56+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
57+
run: |
58+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1"
59+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0"
60+
61+
- name: "Build and Install xdp and libbpf"
62+
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools'
63+
64+
- name: "Build and Install libfabric"
65+
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics'
66+
67+
- name: "Build and Install the DPDK"
68+
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk'
69+
70+
- name: "Build and Install the MTL"
71+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl'
72+
73+
- name: "Build and Install JPEG XS"
74+
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs'
75+
76+
- name: "Build and Install JPEG XS ffmpeg plugin"
77+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin'
78+
79+
- name: "Build gRPC and dependencies"
80+
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc'
81+
82+
- name: "Build MCM SDK and Media Proxy"
83+
run: eval 'source scripts/common.sh && ./build.sh "${PREFIX_DIR}"'
84+
85+
- name: "Build FFmpeg 6.1 with MCM plugin"
86+
working-directory: ${{ github.workspace }}/ffmpeg-plugin
87+
run: |
88+
./configure-ffmpeg.sh "6.1" --disable-doc --disable-debug && \
89+
./build-ffmpeg.sh "6.1"
90+
91+
- name: "Build FFmpeg 7.0 with MCM plugin"
92+
working-directory: ${{ github.workspace }}/ffmpeg-plugin
93+
run: |
94+
./configure-ffmpeg.sh "7.0" --disable-doc --disable-debug && \
95+
./build-ffmpeg.sh "7.0"
96+
97+
- name: "upload media-proxy and mcm binaries"
98+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
99+
with:
100+
name: mcm-build
101+
path: |
102+
${{ env.BUILD_DIR }}/mcm/bin/media_proxy
103+
${{ env.BUILD_DIR }}/mcm/bin/mesh-agent
104+
${{ env.BUILD_DIR }}/mcm/lib/libmcm_dp.so.*
105+
${{ env.BUILD_DIR }}/ffmpeg-6-1/ffmpeg
106+
${{ env.BUILD_DIR }}/ffmpeg-7-0/ffmpeg

.github/workflows/build_docker_tpl.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
build_type:
77
required: false
88
type: string
9-
default: 'Release'
9+
default: "Release"
1010
docker_registry:
1111
required: false
1212
type: string
13-
default: 'ghcr.io'
13+
default: "ghcr.io"
1414
docker_registry_prefix:
1515
required: false
1616
type: string
17-
default: 'openvisualcloud/media-communications-mesh'
17+
default: "openvisualcloud/media-communications-mesh"
1818
docker_registry_login:
1919
required: false
2020
type: boolean
@@ -26,11 +26,11 @@ on:
2626
docker_build_args:
2727
required: false
2828
type: string
29-
default: ''
29+
default: ""
3030
docker_build_platforms:
3131
required: false
3232
type: string
33-
default: 'linux/amd64'
33+
default: "linux/amd64"
3434
docker_image_tag:
3535
required: false
3636
type: string
@@ -40,7 +40,7 @@ on:
4040
docker_file_path:
4141
required: false
4242
type: string
43-
default: './Dockerfile'
43+
default: "./Dockerfile"
4444
secrets:
4545
docker_registry_login:
4646
required: false

.github/workflows/coverity.yml

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Coverity Build
22

33
on:
44
schedule:
5-
- cron: '0 18 * * *'
5+
- cron: "0 18 * * *"
66
workflow_dispatch:
77
inputs:
88
branch:
9-
description: 'Branch to run scans on'
10-
default: 'main'
9+
description: "Branch to run scans on"
10+
default: "main"
1111
type: string
1212

1313
env:
@@ -26,81 +26,81 @@ concurrency:
2626

2727
jobs:
2828
coverity:
29-
runs-on: 'ubuntu-22.04'
29+
runs-on: "ubuntu-22.04"
3030
timeout-minutes: 90
3131
steps:
32-
- name: 'Harden Runner'
33-
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
34-
with:
35-
egress-policy: audit
36-
37-
- name: 'Checkout repository'
38-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
39-
with:
40-
ref: ${{ inputs.branch }}
41-
42-
- name: 'Install OS level dependencies'
43-
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies'
44-
45-
- name: 'Check local dependencies build cache'
46-
id: load-local-dependencies-cache
47-
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
48-
with:
49-
path: ${{ env.BUILD_DIR }}
50-
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
51-
52-
- name: 'Download, unpack and patch build dependencies'
53-
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
54-
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies'
55-
56-
- name: 'Clone and patch ffmpeg 6.1 and 7.0'
57-
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
58-
run: |
59-
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1"
60-
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0"
61-
62-
- name: 'Build and Install xdp and libbpf'
63-
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools'
64-
65-
- name: 'Build and Install libfabric'
66-
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics'
67-
68-
- name: 'Build and Install the DPDK'
69-
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk'
70-
71-
- name: 'Build and Install the MTL'
72-
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl'
73-
74-
- name: 'Build and Install JPEG XS'
75-
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs'
76-
77-
- name: 'Build and Install JPEG XS ffmpeg plugin'
78-
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin'
79-
80-
- name: 'Build gRPC and dependencies'
81-
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc'
82-
83-
- name: 'Configure ffmpeg and dependencies'
84-
run: |
85-
sed -i 's/strlen (MEMIF_DEFAULT_APP_NAME)/(sizeof(MEMIF_DEFAULT_APP_NAME) - 1)/g' ${{ github.workspace }}/sdk/3rdparty/libmemif/src/memif_private.h && \
86-
${{ github.workspace }}/build.sh && \
87-
${{ github.workspace }}/ffmpeg-plugin/configure-ffmpeg.sh "6.1" --disable-doc --disable-debug && \
88-
${{ github.workspace }}/ffmpeg-plugin/configure-ffmpeg.sh "7.0" --disable-doc --disable-debug && \
89-
rm -rf ${{ github.workspace }}/_build/mcm
90-
echo "\"${{ github.workspace }}/ffmpeg-plugin/build-ffmpeg.sh\" \"6.1\"" > ${{ github.workspace }}/build.sh
91-
echo "\"${{ github.workspace }}/ffmpeg-plugin/build-ffmpeg.sh\" \"7.0\"" > ${{ github.workspace }}/build.sh
92-
93-
- name: 'Run coverity'
94-
uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1.8.0
95-
with:
96-
project: 'Media-Communications-Mesh'
97-
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
98-
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
99-
build_language: 'cxx'
100-
build_platform: 'linux64'
101-
command: ${{ github.workspace }}/build.sh
102-
103-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
104-
with:
105-
name: coverity-reports
106-
path: '${{ github.workspace }}/cov-int'
32+
- name: "Harden Runner"
33+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
34+
with:
35+
egress-policy: audit
36+
37+
- name: "Checkout repository"
38+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
39+
with:
40+
ref: ${{ inputs.branch }}
41+
42+
- name: "Install OS level dependencies"
43+
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies'
44+
45+
- name: "Check local dependencies build cache"
46+
id: load-local-dependencies-cache
47+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
48+
with:
49+
path: ${{ env.BUILD_DIR }}
50+
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
51+
52+
- name: "Download, unpack and patch build dependencies"
53+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
54+
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies'
55+
56+
- name: "Clone and patch ffmpeg 6.1 and 7.0"
57+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
58+
run: |
59+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1"
60+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0"
61+
62+
- name: "Build and Install xdp and libbpf"
63+
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools'
64+
65+
- name: "Build and Install libfabric"
66+
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics'
67+
68+
- name: "Build and Install the DPDK"
69+
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk'
70+
71+
- name: "Build and Install the MTL"
72+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl'
73+
74+
- name: "Build and Install JPEG XS"
75+
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs'
76+
77+
- name: "Build and Install JPEG XS ffmpeg plugin"
78+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin'
79+
80+
- name: "Build gRPC and dependencies"
81+
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc'
82+
83+
- name: "Configure ffmpeg and dependencies"
84+
run: |
85+
sed -i 's/strlen (MEMIF_DEFAULT_APP_NAME)/(sizeof(MEMIF_DEFAULT_APP_NAME) - 1)/g' ${{ github.workspace }}/sdk/3rdparty/libmemif/src/memif_private.h && \
86+
${{ github.workspace }}/build.sh && \
87+
${{ github.workspace }}/ffmpeg-plugin/configure-ffmpeg.sh "6.1" --disable-doc --disable-debug && \
88+
${{ github.workspace }}/ffmpeg-plugin/configure-ffmpeg.sh "7.0" --disable-doc --disable-debug && \
89+
rm -rf ${{ github.workspace }}/_build/mcm
90+
echo "\"${{ github.workspace }}/ffmpeg-plugin/build-ffmpeg.sh\" \"6.1\"" > ${{ github.workspace }}/build.sh
91+
echo "\"${{ github.workspace }}/ffmpeg-plugin/build-ffmpeg.sh\" \"7.0\"" > ${{ github.workspace }}/build.sh
92+
93+
- name: "Run coverity"
94+
uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1.8.0
95+
with:
96+
project: "Media-Communications-Mesh"
97+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
98+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
99+
build_language: "cxx"
100+
build_platform: "linux64"
101+
command: ${{ github.workspace }}/build.sh
102+
103+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
104+
with:
105+
name: coverity-reports
106+
path: "${{ github.workspace }}/cov-int"

0 commit comments

Comments
 (0)