Skip to content

Commit

Permalink
github: Manually install vulkan sdk on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianBlokland committed Jul 8, 2023
1 parent a0fbe94 commit 357c3b3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/actions/prepare-windows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ description: 'Prepare a Windows build environment'
inputs:
vulkan-version:
description: 'Vulkan SDK version'
default: '1.2.182'
default: '1.3.204.1'

runs:
using: composite
steps:
- name: install-vulkan
shell: pwsh
run: |
choco install vulkan-sdk --version=$env:VULKAN_VERSION --force --no-progress &&
echo "VULKAN_SDK=$env:VULKAN_SDK_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append &&
Invoke-WebRequest -URI "$env:VULKAN_URL" -OutFile "$env:VULKAN_INSTALLER_PATH" &&
& "$env:VULKAN_INSTALLER_PATH" in --root "$env:VULKAN_SDK_ROOT" --confirm-command --accept-licenses &&
Remove-Item -Path "$env:VULKAN_INSTALLER_PATH" &&
echo "VULKAN_SDK=$env:VULKAN_SDK_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append &&
echo "$env:VULKAN_SDK_ROOT\\Bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
env:
VULKAN_VERSION: "${{ inputs.vulkan-version }}.0"
VULKAN_SDK_ROOT: "C:\\VulkanSDK\\${{ inputs.vulkan-version }}.0"
VULKAN_VERSION: "${{ inputs.vulkan-version }}"
VULKAN_URL: "https://sdk.lunarg.com/sdk/download/${{ inputs.vulkan-version }}/windows/VulkanSDK-${{ inputs.vulkan-version }}-Installer.exe"
VULKAN_SDK_ROOT: "C:\\VulkanSDK\\${{ inputs.vulkan-version }}"
VULKAN_INSTALLER_PATH: "C:\\VulkanInstaller.exe"

0 comments on commit 357c3b3

Please sign in to comment.