ci: Add rust in the windows base image

This is preperation for gstreamer/gstreamer!3889

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4327>
This commit is contained in:
Jordan Petridis 2023-04-03 16:23:02 +03:00 committed by GStreamer Marge Bot
parent 0e20febad1
commit 4e8d0b766c
3 changed files with 22 additions and 1 deletions

View file

@ -8,4 +8,4 @@ variables:
FEDORA_TAG: '2023-04-03.0'
INDENT_TAG: '2023-03-16.1'
LINT_TAG: '2023-02-16.5'
WINDOWS_TAG: '2023-03-20.0'
WINDOWS_TAG: '2023-04-03.0'

View file

@ -58,6 +58,9 @@ RUN 'git config --global user.email "cirunner@gstreamer.freedesktop.org"; git co
COPY install_mingw.ps1 C:\
RUN C:\install_mingw.ps1
COPY install_rust.ps1 C:\
RUN C:\install_rust.ps1
ARG DEFAULT_BRANCH="main"
COPY prepare_gst_env.ps1 C:\

View file

@ -0,0 +1,18 @@
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
$rust_version = '1.68.2'
$rustup_url = 'https://win.rustup.rs/x86_64'
Invoke-WebRequest -Uri $rustup_url -OutFile C:\rustup-init.exe
if (!$?) {
Write-Host "Failed to download rustup"
Exit 1
}
C:\rustup-init.exe -y --profile minimal --default-toolchain $rust_version
if (!$?) {
Write-Host "Failed to install rust"
Exit 1
}