Skip to content

Commit

Permalink
CI Linux arm: disable features, install deps
Browse files Browse the repository at this point in the history
Fixed the feature set - some features were disabled:
- CUDA features
- lavc vdpau
- lavc vaapi
- Qt GUI
- Cineform

dependencies installed:
- libsdl2-ttf
- libsdl2-mixer
  • Loading branch information
MartinPulec committed Jun 11, 2024
1 parent e6c72f0 commit f491124
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/Linux/arm/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ apt -y install libasound2-dev portaudio19-dev libjack-dev
apt -y install libglew-dev libglfw3-dev libglm-dev
apt -y install libcaca-dev libmagickwand-dev libnatpmp-dev libopencv-core-dev libopencv-imgproc-dev libv4l-dev
apt -y install libavcodec-dev libavformat-dev libswscale-dev libraspberrypi-dev
apt -y install libdrm-dev
apt -y install libdrm-dev\
libsdl2-mixer-dev libsdl2-ttf-dev\

/.github/scripts/install-common-deps.sh
/.github/scripts/Linux/install_others.sh ndi pipewire ximea
Expand Down
17 changes: 13 additions & 4 deletions .github/scripts/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ export FEATURES="\
CUDA_FEATURES="--enable-cuda_dxt --enable-gpujpeg --enable-ldgm-gpu --enable-uyvy"
case "$RUNNER_OS" in
Linux)
FEATURES="$FEATURES $CUDA_FEATURES --enable-plugins\
--enable-alsa --enable-lavc-hw-accel-vaapi --enable-lavc-hw-accel-vdpau\
--enable-pipewire-audio --enable-v4l2"
FEATURES="$FEATURES --enable-plugins --enable-alsa \
--enable-pipewire-audio --enable-v4l2"
if [ "$(uname -m)" = x86_64 ]; then
FEATURES="$FEATURES $CUDA_FEATURES \
--enable-lavc-hw-accel-vaapi --enable-lavc-hw-accel-vdpau"
else # arm
FEATURES="$$FEATURES --disable-qt"
fi
;;
macOS)
FEATURES="$FEATURES --enable-avfoundation --enable-coreaudio --enable-syphon"
Expand All @@ -90,7 +95,11 @@ case "$RUNNER_OS" in
;;
esac

if [ "$(uname -s)" != Darwin ] || [ "$(uname -m)" != arm64 ]; then
is_arm() {
uname_m=$(uname -m)
expr "$uname_m" : arm > /dev/null || [ "$uname_m" = aarch64 ]
}
if ! is_arm; then
FEATURES="$FEATURES --enable-cineform"
fi

Expand Down

0 comments on commit f491124

Please sign in to comment.