File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 8484
8585 echo "Downloading Vulkan SDK from LunarG..."
8686 # Use the official LunarG download endpoint (latest Linux tarball).
87- # We avoid distro packages so this matches what students are expected to do.
8887 SDK_TGZ="${RUNNER_TEMP}/vulkansdk-linux.tar.xz"
89- curl -L --fail -o "$SDK_TGZ" "https://sdk.lunarg.com/sdk/download/latest/linux/vulkansdk-linux-x86_64.tar.xz"
88+
89+ download_ok=0
90+ for url in \
91+ "https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.xz" \
92+ "https://sdk.lunarg.com/sdk/download/latest/linux/vulkansdk-linux-x86_64.tar.xz" \
93+ "https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.xz?Human=true" \
94+ "https://sdk.lunarg.com/sdk/download/latest/linux/vulkansdk-linux-x86_64.tar.xz?Human=true"
95+ do
96+ echo "Attempting: $url"
97+ if curl -L --fail -o "$SDK_TGZ" "$url"; then
98+ download_ok=1
99+ break
100+ fi
101+ done
102+ if [ "$download_ok" -ne 1 ]; then
103+ echo "Failed to download Vulkan SDK from LunarG (all endpoints returned non-200)." >&2
104+ exit 1
105+ fi
90106
91107 SDK_DIR="${RUNNER_TEMP}/VulkanSDK"
92108 rm -rf "$SDK_DIR"
You can’t perform that action at this time.
0 commit comments