Skip to content

Use GitHub action to install Vulkan SDK #151

Description

@bashbaug

The OpenCL SDK CI currently downloads and installs the Vulkan SDK somewhat manually:

VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.3.261.1/windows/VulkanSDK-1.3.261.1-Installer.exe
VULKAN_SDK: C:/VulkanSDK/1.3.261.1

- name: Install samples dependencies
run: |
Invoke-WebRequest ${env:VULKAN_SDK_URL} -OutFile vulkan-sdk-installer.exe
.\vulkan-sdk-installer.exe --accept-licenses --default-answer --confirm-command install com.lunarg.vulkan.32bit
Remove-Item vulkan-sdk-installer.exe
if ('${{ matrix.BIN }}' -eq 'x64')
{
echo "Vulkan_LIB_DIR=$env:VULKAN_SDK/Lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
} else {
echo "Vulkan_LIB_DIR=$env:VULKAN_SDK/Lib32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
}

We should use a GitHub action to do this instead, which should be much simpler and more reliable. For example:

https://github.com/jakoch/install-vulkan-sdk-action

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions