Skip to content

github action that provisions the Vulkan SDK and configures VULKAN_SDK environment variable

License

Notifications You must be signed in to change notification settings

aiekick/setup-vulkan-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-vulkan-sdk v1.0.1

GitHub Actions status

This action builds a subset of the Vulkan SDK from source and makes the results available to later build steps through a VULKAN_SDK environment variable.

note: currently only x64 windows and x64 linux environments are supported (if you need another configuration added let me know)

Basic Usage

To build against the latest Vulkan SDK:

  -name: Install Vulkan SDK
   uses: humbletim/[email protected]

Parameters

Specifying an exact SDK version:

  -name: Install Vulkan SDK
   uses: humbletim/[email protected]
   with:
     vulkan-version: 1.2.161.1

How it works

First action.yml installs the minimum dependencies needed to compile Vulkan SDK from source. It then delegates to install_vulkan_sdk.sh, which resolves vulkan-version into a corresponding git branch using the official Vulkan SDK web services.

KhronosGroup/Vulkan-Headers and KhronosGroup/Vulkan-Loader repos are then cloned locally to that branch point, built, and installed into $PWD/VULKAN_SDK. And finally a VULKAN_SDK environment variable is exported for later build tools to discover the SDK's location through.

The entire process takes around a minute or so to complete and the installed artifacts consume around a dozen megabytes of storage space (as opposed to the 1GB+ required for a full Vulkan SDK prebuilt install). Note that this approach only provides enough to compile and link Vulkan applications against -- it does not provide the other utilities, documentation, or code samples that normally ship with the Full Vulkan SDK.

About

github action that provisions the Vulkan SDK and configures VULKAN_SDK environment variable

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%