From f6948d31cdef72c029e4da237982579c756f5a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 23 Dec 2024 10:55:12 +0200 Subject: [PATCH] ci: Set ErrorActionPreference=Stop in powershell scripts Part-of: --- ci/run_windows_tests.ps1 | 2 ++ ci/windows-docker/container.ps1 | 2 ++ ci/windows-docker/install_cargo_utils.ps1 | 2 ++ ci/windows-docker/install_dav1d.ps1 | 2 ++ ci/windows-docker/install_gst.ps1 | 2 ++ ci/windows-docker/install_rust.ps1 | 2 ++ 6 files changed, 12 insertions(+) diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index f7da7f806..21e5344e2 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + # List of all the crates we want to build # We need to do this manually to avoid trying # to build egl,wayland,x11 etc, which can't diff --git a/ci/windows-docker/container.ps1 b/ci/windows-docker/container.ps1 index 28fa2d61b..4aca7cc5e 100644 --- a/ci/windows-docker/container.ps1 +++ b/ci/windows-docker/container.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + # Copied from mesa, big kudos # # https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/.gitlab-ci/windows/mesa_container.ps1 diff --git a/ci/windows-docker/install_cargo_utils.ps1 b/ci/windows-docker/install_cargo_utils.ps1 index 5d4c8c45b..b430237e2 100644 --- a/ci/windows-docker/install_cargo_utils.ps1 +++ b/ci/windows-docker/install_cargo_utils.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; rustup --version diff --git a/ci/windows-docker/install_dav1d.ps1 b/ci/windows-docker/install_dav1d.ps1 index c849c6eff..0f2d1b668 100644 --- a/ci/windows-docker/install_dav1d.ps1 +++ b/ci/windows-docker/install_dav1d.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; # Download gstreamer and all its subprojects diff --git a/ci/windows-docker/install_gst.ps1 b/ci/windows-docker/install_gst.ps1 index bac0599f3..08096bff8 100644 --- a/ci/windows-docker/install_gst.ps1 +++ b/ci/windows-docker/install_gst.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; # Download gstreamer and all its subprojects diff --git a/ci/windows-docker/install_rust.ps1 b/ci/windows-docker/install_rust.ps1 index 9929e9516..5c6823ea1 100644 --- a/ci/windows-docker/install_rust.ps1 +++ b/ci/windows-docker/install_rust.ps1 @@ -1,3 +1,5 @@ +$env:ErrorActionPreference='Stop' + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $rustup_url = 'https://win.rustup.rs/x86_64'