Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0c39f3a

Browse files
authored
Merge pull request #73 from JSKitty/master
Another Vulkan method
2 parents 4614ba1 + 4f20bf8 commit 0c39f3a

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,24 @@ jobs:
5353
- name: Install Vulkan SDK (Windows)
5454
if: matrix.platform == 'windows-latest'
5555
run: |
56-
Write-Host "Downloading Vulkan runtime and tools..."
57-
# Create directories
58-
New-Item -ItemType Directory -Force -Path "C:\VulkanSDK"
56+
Write-Host "Installing Vulkan components..."
5957
60-
# Download pre-built glslc directly from Google's shaderc
61-
Invoke-WebRequest -Uri "https://storage.googleapis.com/shaderc/artifacts/prod/graphics_shader_compiler/shaderc/windows/continuous_release_2022/433/20221215-134414/install.zip" -OutFile "shaderc.zip"
62-
Expand-Archive -Path "shaderc.zip" -DestinationPath "C:\VulkanSDK\shaderc"
58+
# Use chocolatey to get glslc/shaderc tools
59+
choco install shaderc -y
6360
64-
# Download Vulkan runtime
65-
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-runtime-components.zip" -OutFile "vulkan-runtime.zip"
66-
Expand-Archive -Path "vulkan-runtime.zip" -DestinationPath "C:\VulkanSDK\runtime"
61+
# Download Vulkan SDK headers and libraries manually
62+
$vulkanVersion = "1.3.261.1"
63+
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$vulkanVersion/windows/VulkanSDK-$vulkanVersion-Installer.exe" -OutFile "VulkanSDK.exe"
64+
65+
# Extract without installing (to avoid hang)
66+
Start-Process -FilePath "VulkanSDK.exe" -ArgumentList "/S", "/D=C:\VulkanSDK" -NoNewWindow -Wait -TimeoutSec 30
6767
6868
# Set environment variables
6969
echo "VULKAN_SDK=C:\VulkanSDK" >> $env:GITHUB_ENV
70-
echo "C:\VulkanSDK\shaderc\install\bin" >> $env:GITHUB_PATH
71-
echo "C:\VulkanSDK\runtime\Bin" >> $env:GITHUB_PATH
70+
echo "C:\VulkanSDK\Bin" >> $env:GITHUB_PATH
7271
73-
# Verify glslc is available
74-
Write-Host "Checking for glslc..."
75-
& "C:\VulkanSDK\shaderc\install\bin\glslc.exe" --version
72+
# Verify glslc from chocolatey
73+
where glslc
7674
7775
- name: install frontend dependencies
7876
run: npm install

0 commit comments

Comments
 (0)