Use Vulkan SDK for shader validation (#5202)

This commit is contained in:
Teodor Tanasoaia 2024-02-05 18:22:16 +01:00 committed by GitHub
parent 01e94bc9b3
commit c2c0d5f400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,9 @@ on:
merge_group:
env:
# Sourced from https://vulkan.lunarg.com/sdk/home#linux
VULKAN_SDK_VERSION: "1.3.268"
# Sourced from https://github.com/microsoft/DirectXShaderCompiler/releases
#
# Must also be changed in ci.yaml
@ -81,8 +84,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install tools
run: sudo apt-get install spirv-tools glslang-tools graphviz
- name: install vulkan sdk
shell: bash
run: |
set -e
sudo apt-get update -y -qq
# vulkan sdk
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-$VULKAN_SDK_VERSION-jammy.list https://packages.lunarg.com/vulkan/$VULKAN_SDK_VERSION/lunarg-vulkan-$VULKAN_SDK_VERSION-jammy.list
sudo apt-get update
sudo apt install -y vulkan-sdk
- name: Install graphviz
run: sudo apt-get install graphviz
- uses: Swatinem/rust-cache@v2
with: