File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,13 @@ jobs:
6060 - name : Dependencies
6161 if : runner.os == 'Windows'
6262 run : |
63- $SDK_VERSION = Invoke-RestMethod -Uri https://vulkan.lunarg.com/sdk/latest/windows.txt
64- Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/$SDK_VERSION/windows/vulkan_sdk.exe -OutFile vulkan_sdk.exe
63+ $SDK_VERSION = ( Invoke-RestMethod -Uri " https://vulkan.lunarg.com/sdk/latest/windows.txt").Trim()
64+ Invoke-WebRequest -Uri " https://sdk.lunarg.com/sdk/download/$SDK_VERSION/windows/vulkan_sdk.exe" -OutFile vulkan_sdk.exe
6565 Start-Process -FilePath "vulkan_sdk.exe" -ArgumentList "in", "--al", "--confirm-command" -Wait
66+ # Manually set VULKAN_SDK since the installer doesn't update the current session
67+ $env:VULKAN_SDK = "C:\VulkanSDK\$SDK_VERSION"
6668 $env:LIB += ";$env:VULKAN_SDK\Lib"
69+ echo "VULKAN_SDK=$env:VULKAN_SDK" >> $env:GITHUB_ENV
6770 echo "LIB=$env:LIB" >> $env:GITHUB_ENV
6871
6972 - run : cargo build --verbose --workspace --all-targets
You can’t perform that action at this time.
0 commit comments