2022-12-23 19:11:37 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
rustc --version
|
|
|
|
cargo --version
|
|
|
|
|
2024-09-19 21:38:35 +00:00
|
|
|
cpus=$(nproc || sysctl -n hw.ncpu)
|
|
|
|
CARGO_FLAGS="-j${FDO_CI_CONCURRENT:-$cpus}"
|
|
|
|
|
2022-12-23 19:11:37 +00:00
|
|
|
for crate in gstreamer*/sys gstreamer-gl/*/sys; do
|
|
|
|
if [ -e "$crate/Cargo.toml" ]; then
|
2023-05-08 20:05:17 +00:00
|
|
|
echo "Building $crate with --all-features"
|
2024-09-19 21:38:35 +00:00
|
|
|
cargo build $CARGO_FLAGS --locked --color=always --manifest-path "$crate/Cargo.toml" --all-features
|
2022-12-23 19:11:37 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for crate in gstreamer/sys \
|
2024-04-30 09:30:14 +00:00
|
|
|
gstreamer-allocators/sys \
|
|
|
|
gstreamer-analytics/sys \
|
2022-12-23 19:11:37 +00:00
|
|
|
gstreamer-app/sys \
|
|
|
|
gstreamer-audio/sys \
|
|
|
|
gstreamer-base/sys \
|
|
|
|
gstreamer-check/sys \
|
|
|
|
gstreamer-controller/sys \
|
2024-04-30 06:29:36 +00:00
|
|
|
gstreamer-editing-services/sys \
|
2022-12-23 19:11:37 +00:00
|
|
|
gstreamer-gl/sys \
|
|
|
|
gstreamer-gl/egl/sys \
|
|
|
|
gstreamer-gl/wayland/sys \
|
|
|
|
gstreamer-gl/x11/sys \
|
|
|
|
gstreamer-mpegts/sys \
|
|
|
|
gstreamer-net/sys \
|
|
|
|
gstreamer-pbutils/sys \
|
2024-04-30 09:30:14 +00:00
|
|
|
gstreamer-play/sys \
|
2022-12-23 19:11:37 +00:00
|
|
|
gstreamer-player/sys \
|
2024-04-30 09:30:14 +00:00
|
|
|
gstreamer-rtp/sys \
|
2022-12-23 19:11:37 +00:00
|
|
|
gstreamer-rtsp-server/sys \
|
|
|
|
gstreamer-rtsp/sys \
|
|
|
|
gstreamer-sdp/sys \
|
|
|
|
gstreamer-tag/sys \
|
2024-04-30 09:30:14 +00:00
|
|
|
gstreamer-validate/sys \
|
2022-12-23 19:11:37 +00:00
|
|
|
gstreamer-video/sys \
|
|
|
|
gstreamer-webrtc/sys; do
|
2023-05-08 20:05:17 +00:00
|
|
|
echo "Testing $crate with --all-features)"
|
2024-09-19 21:38:35 +00:00
|
|
|
RUST_BACKTRACE=1 cargo test $CARGO_FLAGS --locked --color=always --manifest-path $crate/Cargo.toml --all-features
|
2022-12-23 19:11:37 +00:00
|
|
|
done
|