vello/.github/actions/shader/action.yml
Raph Levien 682e4b769f Shader compilation in GitHub Actions
This patch sets up very basic CI (right now just cargo fmt) but more importantly compiles shaders in a GitHub Action.

Any PR to branches other than main will run shader compilation. Any push to the dev branch will run shader compilation and then merge to main.

Closes #177
2022-06-16 21:19:39 -07:00

23 lines
534 B
GLSL

name: compile shaders
runs:
using: 'composite'
steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- name: setup SPIRV tools
# consider install-vulkan-sdk instead
uses: humbletim/setup-vulkan-sdk@v1.2.0
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Glslang, SPIRV-Cross
vulkan-use-cache: true
- name: install DXC
uses: napokue/setup-dxc@v1.0.0
- name: run shader compilers
run: ninja
shell: pwsh
working-directory: piet-gpu/shader