Skip to content

Commit

Permalink
Add CI action for validation of native shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Feb 11, 2021
1 parent 3aa1183 commit bfbb30b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: validation
on:
pull_request:
paths:
- 'tests/snapshots/*.snap'

jobs:
linux:
name: SPIR-V and GLSL
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install tools
run: sudo apt-get install spirv-tools glslang-tools
- run: make validate-spv
- run: make validate-glsl
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**/*.rs.bk
Cargo.lock
.DS_Store
.fuse_hidden*
.idea
/*.dot
/*.metal
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all clean validate-spv validate-msl
.PHONY: all clean validate-spv validate-msl validate-glsl
.SECONDARY: boids.metal quad.metal
SNAPSHOTS_IN=tests/in
SNAPSHOTS_OUT=tests/out
Expand Down

0 comments on commit bfbb30b

Please sign in to comment.