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

Commit 9c3c6cf

Browse files
authored
Merge pull request #74 from JSKitty/master
Try MSYS2 installation method
2 parents 0c39f3a + 82cc9fa commit 9c3c6cf

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,21 @@ jobs:
5353
- name: Install Vulkan SDK (Windows)
5454
if: matrix.platform == 'windows-latest'
5555
run: |
56-
Write-Host "Installing Vulkan components..."
56+
Write-Host "Installing Vulkan via MSYS2..."
5757
58-
# Use chocolatey to get glslc/shaderc tools
59-
choco install shaderc -y
58+
# Update MSYS2 first
59+
C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm"
6060
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
61+
# Install Vulkan packages including glslc
62+
C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm mingw-w64-x86_64-vulkan-loader mingw-w64-x86_64-vulkan-headers mingw-w64-x86_64-shaderc mingw-w64-x86_64-glslang mingw-w64-x86_64-spirv-tools"
6763
6864
# Set environment variables
69-
echo "VULKAN_SDK=C:\VulkanSDK" >> $env:GITHUB_ENV
70-
echo "C:\VulkanSDK\Bin" >> $env:GITHUB_PATH
65+
echo "VULKAN_SDK=C:\msys64\mingw64" >> $env:GITHUB_ENV
66+
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
7167
72-
# Verify glslc from chocolatey
73-
where glslc
68+
# Verify glslc is available
69+
Write-Host "Verifying glslc installation..."
70+
C:\msys64\mingw64\bin\glslc.exe --version
7471
7572
- name: install frontend dependencies
7673
run: npm install

0 commit comments

Comments
 (0)