diff --git a/appveyor.yml b/appveyor.yml index 203b32a2cb..fbfd8f907d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,7 +9,8 @@ environment: GLSLANG: https://drive.google.com/uc?export=download&id=1A2eOMmCO714i0U7J0qI4aEMKnuWl8l_R COMPATDB: https://rpcs3.net/compatibility?api=v1&export VULKAN_SDK: "C:\\VulkanSDK\\1.1.73.0" - VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.1.73.0/windows/VulkanSDK-1.1.73.0-Installer.exe?Human=true + VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.1.73.0/windows/VulkanSDK-1.1.73.0-Installer.exe + VULKAN_SDK_MIRROR: https://obk.ee/rpcs3/VulkanSDK-1.1.73.0-Installer.exe cache: - glslang.7z -> appveyor.yml @@ -70,7 +71,24 @@ before_build: if (!(test-path glslang.7z)) { irm $env:GLSLANG -outfile glslang.7z } 7z x llvmlibs.7z -aos -o"." | out-null 7z x glslang.7z -aos -o".\lib\$env:CONFIGURATION-$env:PLATFORM" | out-null - if (!(test-path vulkan-sdk.exe)) { irm $env:VULKAN_SDK_URL -outfile vulkan-sdk.exe } + if (!(test-path vulkan-sdk.exe)) + { + Try + { + irm $env:VULKAN_SDK_MIRROR -outfile vulkan-sdk.exe + } + Catch + { + Try + { + irm $env:VULKAN_SDK_URL -outfile vulkan-sdk.exe + } + Catch + { + irm "$($env:VULKAN_SDK_URL)?Human=true" -outfile vulkan-sdk.exe + } + } + } .\vulkan-sdk.exe /S after_build: