github: add action for installing vulkansdk (#9084)

This commit is contained in:
Powei Feng
2025-08-13 15:38:41 -07:00
committed by GitHub
parent b2e4163ae1
commit e3cf3d41e3
3 changed files with 147 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
name: 'Get Vulkan SDK'
description: 'Installs Vulkan SDK'
runs:
using: 'composite'
steps:
- uses: ./.github/actions/dep-versions
- name: Get Vulkan SDK
uses: actions/cache@v3
id: cache-vulkan-sdk
with:
path: vulkansdk
key: vulkansdk-${{ env.GITHUB_VULKANSDK_VERSION }}-${{ runner.os }}
- name: Download Vulkan SDK
if: steps.cache-vulkan-sdk.outputs.cache-hit != 'true'
run: |
source ${{ github.workspace }}/build/common/get-vulkan-sdk.sh
download_vulkan_installer
shell: bash
- name: Unpack Vulkan SDK
if: steps.cache-vulkan-sdk.outputs.cache-hit != 'true'
run: |
source ${{ github.workspace }}/build/common/get-vulkan-sdk.sh
unpack_vulkan_installer
shell: bash