summaryrefslogtreecommitdiff
path: root/.gitlab-ci/container/install-wine-dxvk.sh
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2023-01-19 00:26:03 +0100
committerMarge Bot <emma+marge@anholt.net>2023-01-19 23:46:44 +0000
commit796686af1b379cf3601e9b49d176906596af5c75 (patch)
tree8e68c9031e957fe7b296fe1cd21ea3076a73bf90 /.gitlab-ci/container/install-wine-dxvk.sh
parent1abd3a3051f753822c96ba408acb19d8a001804f (diff)
downloadmesa-796686af1b379cf3601e9b49d176906596af5c75.tar.gz
mesa-796686af1b379cf3601e9b49d176906596af5c75.tar.bz2
mesa-796686af1b379cf3601e9b49d176906596af5c75.zip
ci: migrate from wget to curl
Better error handling is more reliable. Options: -L, follow location --retry, number of retries --retry-all-errors, does not fail on ALL errors, that's why there is -f -f, fail fast with no output at all on server errors --retry-delay, make curl sleep this amount of time before each retry Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20788>
Diffstat (limited to '.gitlab-ci/container/install-wine-dxvk.sh')
-rwxr-xr-x.gitlab-ci/container/install-wine-dxvk.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci/container/install-wine-dxvk.sh b/.gitlab-ci/container/install-wine-dxvk.sh
index b39a42c0d1d..a7ebb20412d 100755
--- a/.gitlab-ci/container/install-wine-dxvk.sh
+++ b/.gitlab-ci/container/install-wine-dxvk.sh
@@ -5,7 +5,8 @@ set -e
dxvk_install_release() {
local DXVK_VERSION=${1:-"1.10.3"}
- wget "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
+ curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
+ -O "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
tar xzpf dxvk-"${DXVK_VERSION}".tar.gz
# https://github.com/doitsujin/dxvk/issues/2921
sed -i 's/wine="wine"/wine="wine32"/' "dxvk-${DXVK_VERSION}"/setup_dxvk.sh