From be356dbf0836609ca52ad070069f7c75b3ae5e38 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 17 Aug 2022 18:03:27 +0300 Subject: [PATCH] ci: Use a prefix for the meson build in the windows image Part-of: --- ci/run_windows_tests.ps1 | 6 +++--- ci/windows-docker/Dockerfile | 2 +- ci/windows-docker/install_gst.ps1 | 3 ++- ci/windows-docker/install_gtk.ps1 | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index 53f324566..25065ebc3 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -1,6 +1,6 @@ # Add the precompiled gst binaries to the path -$env:Path += ';C:\bin\' -$env:PKG_CONFIG_PATH = "C:/lib/pkgconfig" +$env:Path += ';C:/gst-install/bin\' +$env:PKG_CONFIG_PATH = "C:/gst-install/lib/pkgconfig" # List of all the crates we want to build # We need to do this manually to avoid trying @@ -82,4 +82,4 @@ foreach($crate in $crates) Write-Host "Tests failed to for crate: $crate" Exit 1 } -} \ No newline at end of file +} diff --git a/ci/windows-docker/Dockerfile b/ci/windows-docker/Dockerfile index 6caed1b82..6cfd3259f 100644 --- a/ci/windows-docker/Dockerfile +++ b/ci/windows-docker/Dockerfile @@ -10,7 +10,7 @@ ARG DEFAULT_BRANCH="main" ARG RUST_VERSION="invalid" RUN choco install -y pkgconfiglite -ENV PKG_CONFIG_PATH="C:/lib/pkgconfig" +ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig" COPY install_gst.ps1 install_gtk.ps1 C:\ RUN C:\install_gst.ps1 diff --git a/ci/windows-docker/install_gst.ps1 b/ci/windows-docker/install_gst.ps1 index 63bc93486..c5de87421 100644 --- a/ci/windows-docker/install_gst.ps1 +++ b/ci/windows-docker/install_gst.ps1 @@ -26,7 +26,8 @@ if (!$?) { Exit 1 } -$env:MESON_ARGS = "-Dglib:installed_tests=false " + +$env:MESON_ARGS = "--prefix=C:\gst-install\ " + + "-Dglib:installed_tests=false " + "-Dlibnice:tests=disabled " + "-Dlibnice:examples=disabled " + "-Dffmpeg:tests=disabled " + diff --git a/ci/windows-docker/install_gtk.ps1 b/ci/windows-docker/install_gtk.ps1 index 0f9270bba..420a0ce48 100644 --- a/ci/windows-docker/install_gtk.ps1 +++ b/ci/windows-docker/install_gtk.ps1 @@ -11,7 +11,7 @@ if (!$?) { Set-Location C:\gtk -$env:MESON_ARGS = "" +$env:MESON_ARGS = "--prefix=C:\gst-install\" Write-Output "Building gtk" cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson _build $env:MESON_ARGS && meson compile -C _build && ninja -C _build install"