ci: Set the PATH var in the docker image rather than scripts

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1084>
This commit is contained in:
Jordan Petridis 2022-08-18 12:51:04 +03:00
parent be356dbf08
commit 29bc304c88
4 changed files with 4 additions and 7 deletions

View file

@ -1,4 +1,4 @@
variables: variables:
GST_RS_IMG_TAG: '2022-08-23.0' GST_RS_IMG_TAG: '2022-08-23.2'
GST_RS_STABLE: '1.63.0' GST_RS_STABLE: '1.63.0'
GST_RS_MSRV: '1.60.0' GST_RS_MSRV: '1.60.0'

View file

@ -1,7 +1,3 @@
# Add the precompiled gst binaries to the path
$env:Path += ';C:/gst-install/bin\'
$env:PKG_CONFIG_PATH = "C:/gst-install/lib/pkgconfig"
# List of all the crates we want to build # List of all the crates we want to build
# We need to do this manually to avoid trying # We need to do this manually to avoid trying
# to build egl,wayland,x11 etc, which can't # to build egl,wayland,x11 etc, which can't

View file

@ -10,6 +10,9 @@ ARG DEFAULT_BRANCH="main"
ARG RUST_VERSION="invalid" ARG RUST_VERSION="invalid"
RUN choco install -y pkgconfiglite RUN choco install -y pkgconfiglite
# https://stackoverflow.com/a/50716450
RUN setx PATH '%PATH%;C:\gst-install\bin'
ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig" ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig"
COPY install_gst.ps1 install_gtk.ps1 C:\ COPY install_gst.ps1 install_gtk.ps1 C:\

View file

@ -1,7 +1,5 @@
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
$env:Path += ";C:\gst-install\bin\"
# Download gstreamer and all its subprojects # Download gstreamer and all its subprojects
git clone -b gtk-4-6 --depth 1 https://gitlab.gnome.org/gnome/gtk.git C:\gtk git clone -b gtk-4-6 --depth 1 https://gitlab.gnome.org/gnome/gtk.git C:\gtk
if (!$?) { if (!$?) {