diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml new file mode 100644 index 0000000000..6b73690f4f --- /dev/null +++ b/.github/workflows/validation.yml @@ -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 diff --git a/.gitignore b/.gitignore index bdef2e67f3..40440d9b5a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ **/*.rs.bk Cargo.lock .DS_Store +.fuse_hidden* .idea /*.dot /*.metal diff --git a/Makefile b/Makefile index 294ab4f1ed..fea66b6226 100644 --- a/Makefile +++ b/Makefile @@ -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