-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build baremetal ubuntu updated Fixed to use script instead of custom build steps Minor naming convention changes Signed-off-by: Milosz Linkiewicz <[email protected]>
- Loading branch information
Showing
21 changed files
with
279 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Source repository: https://github.com/actions/dependency-review-action | ||
name: scan-dependency-review | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Harden Runner' | ||
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: 'Checkout Repository' | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build Docker Images | ||
name: build-docker-images | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build Baremetal Ubuntu | ||
name: build-baremetal-ubuntu | ||
|
||
on: | ||
push: | ||
|
@@ -9,14 +9,10 @@ on: | |
|
||
env: | ||
BUILD_TYPE: Release | ||
MTL_BUILD_DISABLE_PCAPNG: true | ||
LIBFABRIC_DIR: /tmp/libfabric | ||
XDP_VERSION: 5c88569dd15e55db678b897b8ea2a73aeaf956f4 | ||
XDP_DIR: /tmp/xdp | ||
GRPC_VERSION: v1.58.0 | ||
GRPC_DIR: /tmp/grpc | ||
PREFIX_DIR: /usr/local | ||
BUILD_DIR: "${{ github.workspace }}/_build" | ||
DEBIAN_FRONTEND: noninteractive | ||
MTL_BUILD_DISABLE_PCAPNG: true | ||
PREFIX_DIR: "${{ github.workspace }}/_install" | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -45,68 +41,49 @@ jobs: | |
- name: 'Install OS level dependencies' | ||
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies' | ||
|
||
- name: 'Build and Install xdp and libbpf' | ||
- name: 'Check local dependencies build cache' | ||
id: load-local-dependencies-cache | ||
uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | ||
with: | ||
path: ${{ env.BUILD_DIR }} | ||
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }} | ||
|
||
- name: 'Download, unpack and patch build dependencies' | ||
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true' | ||
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies' | ||
|
||
- name: 'Clone and patch ffmpeg 6.1 and 7.0' | ||
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true' | ||
run: | | ||
git clone --recurse-submodules https://github.com/xdp-project/xdp-tools.git "${XDP_DIR}" && \ | ||
pushd "${XDP_DIR}" && \ | ||
./configure && \ | ||
make -j$(nproc) && \ | ||
sudo make install && \ | ||
make -j$(nproc) -C "${XDP_DIR}/lib/libbpf/src" && \ | ||
sudo make -C "${XDP_DIR}/lib/libbpf/src" install && popd | ||
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1" | ||
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0" | ||
- name: 'Build and Install xdp and libbpf' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools' | ||
|
||
- name: 'Build and Install libfabric' | ||
run: | | ||
git clone --depth 1 --branch v1.22.0 https://github.com/ofiwg/libfabric "${LIBFABRIC_DIR}" && \ | ||
pushd "${LIBFABRIC_DIR}" && \ | ||
./autogen.sh && ./configure && \ | ||
make -j$(nproc) && \ | ||
sudo make install && popd | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics' | ||
|
||
- name: 'Install MTL' | ||
run: | | ||
git clone --depth 1 https://github.com/OpenVisualCloud/Media-Transport-Library.git imtl | ||
pushd imtl && ./build.sh && popd | ||
- name: 'Build and Install the DPDK' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk' | ||
|
||
- name: 'Restore cached for gRPC build' | ||
id: grpc-cache-restore | ||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ${{ env.GRPC_DIR }} | ||
key: Linux-grpc${{ env.GRPC_VERSION }} | ||
- name: 'Build and Install the MTL' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl' | ||
|
||
- name: 'Build gRPC' | ||
if: steps.grpc-cache-restore.outputs.cache-hit != 'true' | ||
run: | | ||
git clone --branch ${GRPC_VERSION} --recurse-submodules --depth 1 --shallow-submodules https://github.com/grpc/grpc "${GRPC_DIR}" && \ | ||
cmake -DgRPC_INSTALL=ON \ | ||
-DgRPC_BUILD_TESTS=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=${PREFIX_DIR} \ | ||
-B "${GRPC_DIR}/cmake/build" | ||
-S "${GRPC_DIR}" && \ | ||
cmake --build "${GRPC_DIR}/cmake/build" -j `nproc` | ||
- name: 'Save cache for gRPC build' | ||
if: steps.grpc-cache-restore.outputs.cache-hit != 'true' | ||
id: grpc-cache-save | ||
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ${{ env.GRPC_DIR }} | ||
key: ${{ steps.grpc-cache-restore.outputs.cache-primary-key }} | ||
- name: 'Build and Install JPEG XS' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs' | ||
|
||
- name: 'Install gRPC' | ||
run: | | ||
sudo cmake --install "${GRPC_DIR}/cmake/build" && \ | ||
rm -rf "${GRPC_DIR}" | ||
- name: 'Build and Install JPEG XS ffmpeg plugin' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin' | ||
|
||
- name: 'Build gRPC and dependencies' | ||
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc' | ||
|
||
- name: 'Build MCM SDK and Media Proxy' | ||
run: ./build.sh | ||
|
||
- name: 'Build MCM FFmpeg plugin' | ||
working-directory: ${{ github.workspace }}/ffmpeg-plugin | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
./clone-and-patch-ffmpeg.sh && \ | ||
./configure-ffmpeg.sh && \ | ||
./build-ffmpeg.sh | ||
./configure-ffmpeg.sh && \ | ||
./build-ffmpeg.sh |
Oops, something went wrong.