Skip to content

Commit 0228f1d

Browse files
committed
Another fix of the build.yml
1 parent 7048a6b commit 0228f1d

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
git \
3030
libvulkan-dev \
3131
vulkan-tools \
32-
glslang-tools \
32+
shaderc \
3333
libx11-dev \
3434
libxrandr-dev \
3535
libxi-dev \
@@ -74,11 +74,19 @@ jobs:
7474
with:
7575
submodules: recursive
7676

77-
- name: Install Vulkan SDK
78-
uses: humbletim/install-vulkan-sdk@v1.1.1
79-
with:
80-
version: latest
81-
cache: true
77+
- name: Install Vulkan SDK (Windows)
78+
shell: pwsh
79+
run: |
80+
$version = "1.3.296.0"
81+
$url = "https://sdk.lunarg.com/sdk/download/$version/windows/VulkanSDK-$version-Installer.exe"
82+
$installer = "$env:TEMP\VulkanSDK.exe"
83+
Write-Host "Downloading Vulkan SDK $version..."
84+
Invoke-WebRequest -Uri $url -OutFile $installer
85+
Write-Host "Installing Vulkan SDK..."
86+
Start-Process -FilePath $installer -ArgumentList "--accept-licenses --default-answer --confirm-command install" -Wait
87+
$sdkPath = "C:\VulkanSDK\$version"
88+
echo "VULKAN_SDK=$sdkPath" >> $env:GITHUB_ENV
89+
echo "$sdkPath\Bin" >> $env:GITHUB_PATH
8290
8391
- name: Configure CMake (Windows)
8492
run: |
@@ -92,6 +100,7 @@ jobs:
92100
cmake --build . --config Release
93101
94102
- name: Zip Windows executable and shaders
103+
shell: pwsh
95104
run: |
96105
$exe = "build\Release\game.exe"
97106
$shaders = "build\Release\shaders"
@@ -120,7 +129,7 @@ jobs:
120129
- name: Checkout code
121130
uses: actions/checkout@v4
122131
with:
123-
fetch-depth: 0 # needed to see all tags
132+
fetch-depth: 0
124133

125134
- name: Download Linux artifact
126135
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)