mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
682e4b769f
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
23 lines
534 B
GLSL
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
|