Skip to content

Commit 1144481

Browse files
authored
Update CI.yaml
1 parent c8f8605 commit 1144481

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/CI.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)