Skip to content

Commit 8e1faec

Browse files
committed
chore: update build workflows to streamline Vulkan SDK installation
- Refactored installation steps for Vulkan SDK in both build-sidecar.yml and release.yml to use the humbletim/install-vulkan-sdk action. - Added additional Vulkan development tools to the Linux installation process for enhanced build capabilities.
1 parent 39e8f3a commit 8e1faec

2 files changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/build-sidecar.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,17 @@ jobs:
4747

4848
- name: Install build deps (Linux)
4949
if: runner.os == 'Linux'
50-
run: sudo apt-get update -y && sudo apt-get install -y cmake build-essential libvulkan-dev
50+
run: |
51+
sudo apt-get update -y
52+
sudo apt-get install -y cmake build-essential \
53+
libvulkan-dev glslang-tools glslc spirv-headers spirv-tools
5154
5255
- name: Install Vulkan SDK (Windows)
5356
if: runner.os == 'Windows'
54-
shell: pwsh
55-
run: |
56-
$VK_VERSION = "1.4.313.0"
57-
$installer = "$env:RUNNER_TEMP\VulkanSDK.exe"
58-
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$VK_VERSION/windows/VulkanSDK-$VK_VERSION-Installer.exe" -OutFile $installer
59-
Start-Process -FilePath $installer -ArgumentList "--accept-licenses --default-answer --confirm-command install" -Wait
60-
$sdkPath = "C:\VulkanSDK\$VK_VERSION"
61-
Add-Content $env:GITHUB_ENV "VULKAN_SDK=$sdkPath"
62-
Add-Content $env:GITHUB_PATH "$sdkPath\Bin"
57+
uses: humbletim/install-vulkan-sdk@v1.2
58+
with:
59+
version: 1.4.309.0
60+
cache: true
6361

6462
# cmake ships with macOS / windows runners already.
6563

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ jobs:
122122
python-version: "3.11"
123123

124124
- name: Install build deps
125-
run: sudo apt-get update -y && sudo apt-get install -y cmake build-essential libvulkan-dev
125+
run: |
126+
sudo apt-get update -y
127+
sudo apt-get install -y cmake build-essential \
128+
libvulkan-dev glslang-tools glslc spirv-headers spirv-tools
126129
127130
- name: Install uv
128131
run: |
@@ -169,14 +172,10 @@ jobs:
169172
python-version: "3.11"
170173

171174
- name: Install Vulkan SDK
172-
run: |
173-
$VK_VERSION = "1.4.313.0"
174-
$installer = "$env:RUNNER_TEMP\VulkanSDK.exe"
175-
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$VK_VERSION/windows/VulkanSDK-$VK_VERSION-Installer.exe" -OutFile $installer
176-
Start-Process -FilePath $installer -ArgumentList "--accept-licenses --default-answer --confirm-command install" -Wait
177-
$sdkPath = "C:\VulkanSDK\$VK_VERSION"
178-
Add-Content $env:GITHUB_ENV "VULKAN_SDK=$sdkPath"
179-
Add-Content $env:GITHUB_PATH "$sdkPath\Bin"
175+
uses: humbletim/install-vulkan-sdk@v1.2
176+
with:
177+
version: 1.4.309.0
178+
cache: true
180179

181180
- name: Install uv
182181
run: |

0 commit comments

Comments
 (0)