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 e89f5cf
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/actions/prepare-windows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,28 @@ 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 &&
echo "$env:VULKAN_SDK_ROOT\\Bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
$vulkanVersion = "$env:VULKAN_VERSION"
$vulkanSdkRoot = "$env:VULKAN_SDK_ROOT"
$vulkanInstallerPath = "C:\\VulkanInstaller.exe"
$vulkanUrl = "https://sdk.lunarg.com/sdk/download/${vulkanVersion}/windows/VulkanSDK-${vulkanVersion}-Installer.exe"
$githubEnv = "$env:GITHUB_ENV"
$githubPath = "$env:GITHUB_PATH"
echo "Installing VulkanSdk from: '$vulkanUrl'"
Invoke-WebRequest -URI $vulkanUrl -OutFile $vulkanInstallerPath &&
& $vulkanInstallerPath /S &&
echo "VULKAN_SDK=${vulkanSdkRoot}" | Out-File -FilePath $githubEnv -Encoding utf8 -Append &&
echo "${vulkanSdkRoot}\\Bin" | Out-File -FilePath $githubPath -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_SDK_ROOT: "C:\\VulkanSDK\\${{ inputs.vulkan-version }}"

0 comments on commit e89f5cf

Please sign in to comment.