This action automatically downloads and installs the Vulkan SDK development environment.
-name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
with:
version: 1.4.309.0
cache: trueParameters:
- version (optional; default=latest):
N.N.N.Nstyle Vulkan SDK release number (orlatestto use most recent official release). - cache (optional; default=false): boolean indicating whether to cache the downloaded installer file between builds.
- quiet (optional; default=false): when using
latestan Annotation is added to builds with actual SDK number; setquiet: trueto silence.
Know working SDK version for windows/mac/linux:
- 1.4.309.0
- windows.json
- linux.json
- mac.json (version >= 1.3.296.0)
- see also https://vulkan.lunarg.com/sdk/home
Exported variables:
VULKAN_SDK(standard variable used by cmake and other build tools)VULKAN_SDK_VERSIONVULKAN_SDK_PLATFORMPATHis extended to includeVULKAN_SDK/bin(so SDK tools likeglslangValidatorcan be used directly)
Please be aware that Vulkan SDKs can use a lot of disk space; windows/linux approximately ~0.75GB; macos approximately ~1.75GB (mostly lib/libshaderc_combined.a).
If your project only depends on Vulkan-Headers and Vulkan-Loader to compile and link against then you may want to consider using humbletim/setup-vulkan-sdk instead, which allows building individual SDK components directly from Khronos source repos (and uses less disk space).