Skip to content

Commit

Permalink
Use Vulkan SDK for shader validation (#5202)
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored Feb 5, 2024
1 parent 01e94bc commit c2c0d5f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/shaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c2c0d5f

Please sign in to comment.