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

Commit 80a2168

Browse files
authored
Merge pull request #76 from JSKitty/master
Try another damn Vulkan install method
2 parents ec5e8e7 + 357b77a commit 80a2168

1 file changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,29 @@ jobs:
5050
sudo apt-get update
5151
sudo apt-get install -y vulkan-sdk
5252
53-
- name: Install Vulkan SDK (Windows)
53+
- name: Setup Vulkan SDK (Windows)
54+
if: matrix.platform == 'windows-latest'
55+
uses: humbletim/setup-vulkan-sdk@v1.2.1
56+
with:
57+
vulkan-query-version: latest
58+
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
59+
vulkan-use-cache: false
60+
61+
- name: Download glslc manually (Windows)
5462
if: matrix.platform == 'windows-latest'
5563
run: |
56-
Write-Host "Installing Vulkan via MSYS2..."
57-
58-
# Update MSYS2 first
59-
C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm"
60-
61-
# Install Vulkan packages including development libraries
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-vulkan-icd-loader mingw-w64-x86_64-shaderc mingw-w64-x86_64-glslang mingw-w64-x86_64-spirv-tools"
64+
# Since the action might not install glslc properly, let's get it from vcpkg
65+
vcpkg install glslang:x64-windows
6366
64-
# Set environment variables for CMake to find Vulkan
65-
echo "VULKAN_SDK=C:\msys64\mingw64" >> $env:GITHUB_ENV
66-
echo "VK_SDK_PATH=C:\msys64\mingw64" >> $env:GITHUB_ENV
67-
echo "Vulkan_LIBRARY=C:\msys64\mingw64\lib\libvulkan.dll.a" >> $env:GITHUB_ENV
68-
echo "Vulkan_INCLUDE_DIR=C:\msys64\mingw64\include" >> $env:GITHUB_ENV
69-
echo "CMAKE_PREFIX_PATH=C:\msys64\mingw64" >> $env:GITHUB_ENV
70-
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
67+
# Find and copy glslc to where CMake expects it
68+
$glslcPath = Get-ChildItem -Path "C:\vcpkg\installed\x64-windows\tools" -Filter "glslc.exe" -Recurse | Select-Object -First 1
69+
if ($glslcPath) {
70+
Write-Host "Found glslc at: $($glslcPath.FullName)"
71+
Copy-Item $glslcPath.FullName "$env:VULKAN_SDK\Bin\" -Force
72+
}
7173
72-
# Verify installations
73-
Write-Host "Checking for Vulkan library..."
74-
dir C:\msys64\mingw64\lib\*vulkan*
75-
Write-Host "Verifying glslc..."
76-
C:\msys64\mingw64\bin\glslc.exe --version
74+
# Add vcpkg tools to PATH as backup
75+
echo "C:\vcpkg\installed\x64-windows\tools\glslang" >> $env:GITHUB_PATH
7776
7877
- name: install frontend dependencies
7978
run: npm install

0 commit comments

Comments
 (0)