66name : ' Environment Setup'
77description : ' Install and verify all required libraries and tools on the runner'
88
9+ inputs :
10+ dpdk-version :
11+ description : ' DPDK version to build'
12+ required : false
13+ default : ' 25.11'
14+ mtl-version :
15+ description : ' MTL release tag to build'
16+ required : false
17+ default : ' v26.01'
18+ ffmpeg-version :
19+ description : ' FFmpeg release branch to build'
20+ required : false
21+ default : ' 7.0'
22+
923runs :
1024 using : composite
1125 steps :
@@ -71,18 +85,18 @@ runs:
7185 echo " [OK] libdpdk ($(pkg-config --modversion libdpdk))"
7286 exit 0
7387 fi
74- echo " Building DPDK 25.11 from source..."
88+ echo " Building DPDK ${{ inputs.dpdk-version }} from source..."
7589 MTL_SOURCE="$HOME/Media-Transport-Library"
7690 if [ ! -d "$MTL_SOURCE" ]; then
7791 git clone https://github.com/OpenVisualCloud/Media-Transport-Library.git "$MTL_SOURCE"
78- cd "$MTL_SOURCE" && git checkout v26.01
92+ cd "$MTL_SOURCE" && git checkout ${{ inputs.mtl-version }}
7993 fi
8094 cd "$HOME"
8195 git clone https://github.com/DPDK/dpdk.git
8296 cd dpdk
83- git checkout v25.11
84- git switch -c v25.11
85- git apply "$MTL_SOURCE"/patches/dpdk/25.11 /*.patch
97+ git checkout v${{ inputs.dpdk-version }}
98+ git switch -c v${{ inputs.dpdk-version }}
99+ git apply "$MTL_SOURCE"/patches/dpdk/${{ inputs.dpdk-version }} /*.patch
86100 meson setup build
87101 ninja -C build
88102 sudo ninja install -C build
@@ -98,11 +112,11 @@ runs:
98112 echo " [OK] mtl ($(pkg-config --modversion mtl))"
99113 exit 0
100114 fi
101- echo " Building MTL v26.01 from source..."
115+ echo " Building MTL ${{ inputs.mtl-version }} from source..."
102116 MTL_SOURCE="$HOME/Media-Transport-Library"
103117 if [ ! -d "$MTL_SOURCE" ]; then
104118 git clone https://github.com/OpenVisualCloud/Media-Transport-Library.git "$MTL_SOURCE"
105- cd "$MTL_SOURCE" && git checkout v26.01
119+ cd "$MTL_SOURCE" && git checkout ${{ inputs.mtl-version }}
106120 fi
107121 cd "$MTL_SOURCE"
108122 ./build.sh
@@ -136,13 +150,13 @@ runs:
136150 echo " [OK] FFmpeg with MTL plugin already installed"
137151 exit 0
138152 fi
139- echo " Building FFmpeg 7.0 with MTL plugin from source..."
153+ echo " Building FFmpeg ${{ inputs.ffmpeg-version }} with MTL plugin from source..."
140154 MTL_SOURCE="$HOME/Media-Transport-Library"
141155 cd "$HOME"
142156 git clone https://github.com/FFmpeg/FFmpeg.git
143157 cd FFmpeg
144- git checkout release/7.0
145- git apply "$MTL_SOURCE"/ecosystem/ffmpeg_plugin/7.0 /*.patch
158+ git checkout release/${{ inputs.ffmpeg-version }}
159+ git apply "$MTL_SOURCE"/ecosystem/ffmpeg_plugin/${{ inputs.ffmpeg-version }} /*.patch
146160 cp "$MTL_SOURCE"/ecosystem/ffmpeg_plugin/mtl_*.c libavdevice/
147161 cp "$MTL_SOURCE"/ecosystem/ffmpeg_plugin/mtl_*.h libavdevice/
148162 ./configure --enable-shared --disable-static --enable-pic \
0 commit comments