-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 903 Bytes
/
Copy pathopengl.yml
File metadata and controls
39 lines (33 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: OpenGL
on:
push:
branches: [main]
paths:
- "src/**"
- "assets/shaders/**"
- "config/**"
pull_request:
branches: [main]
paths:
- "src/**"
- "assets/shaders/**"
- "config/**"
concurrency:
group: opengl-${{ github.ref }}
cancel-in-progress: true
jobs:
shader-validation:
name: Shader Validation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install glslang
run: sudo apt-get update && sudo apt-get install -y glslang-tools
- name: Validate GLSL shaders
run: |
SHADERS=$(find assets/shaders -type f \( -name "*.vert" -o -name "*.frag" -o -name "*.geom" -o -name "*.comp" \))
echo "Found $(echo "$SHADERS" | wc -l) shaders"
echo "$SHADERS" | xargs glslangValidator