From e5dc2ad97349fb311bc42c3b643f13295e52cdb7 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 22 Sep 2022 10:36:10 +0530 Subject: ci: Build pkg-config as part of deps build on macOS and Windows Otherwise it gets built every single time in merge requests that consume cerbero deps cache. Should save a few min on macOS and Windows jobs. Part-of: --- ci/cerbero_setup.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ci/cerbero_setup.sh b/ci/cerbero_setup.sh index 2d020e4c..2e0d63c3 100755 --- a/ci/cerbero_setup.sh +++ b/ci/cerbero_setup.sh @@ -139,10 +139,21 @@ cerbero_deps_script() { local build_deps="gstreamer-1.0 gst-plugins-base-1.0 gst-plugins-good-1.0 gst-plugins-bad-1.0 gst-plugins-ugly-1.0 gst-rtsp-server-1.0 gst-devtools-1.0 gst-editing-services-1.0 libnice" - # Some deps that are only listed in the package files + # Deps that don't get picked up automatically because are only listed in + # the package files local more_deps="glib-networking" # UWP target doesn't support building ffmpeg yet - [[ $CONFIG =~ uwp ]] || build_deps="$build_deps gst-libav-1.0" + if ! [[ $CONFIG =~ uwp ]]; then + build_deps="$build_deps gst-libav-1.0" + # Deps that don't get picked up automatically because they are + # a runtime dep + # XXX: This is two separate comparisons because older bash (as on + # Cerbero's MSYS) requires `|` to be escaped, but newer bash + # (everywhere else) requires it to not be escaped. + if [[ $ARCH =~ darwin ]] || [[ $ARCH =~ msvc\|mingw ]]; then + more_deps="$more_deps pkg-config" + fi + fi show_ccache_sum -- cgit v1.2.3