forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.28 KB
/
shaders.yml
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
40
41
42
43
44
45
46
47
48
49
50
name: Shaders
on:
pull_request: null
workflow_dispatch:
inputs:
myCommit:
description: Commit SHA1
required: false
default: ''
type: string
push: null
release:
types:
- published
jobs:
check_shaders:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: '${{ inputs.myCommit }}'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y glslang-tools
- name: Check OpenGL 4.1 (Core) shaders
working-directory: resources/shaders
run: >
mkdir ../shaders_opengl41core
find . -type f -exec bash -c 'echo "#version 410 core" >
../shaders_opengl41core/{} && cat {} >> ../shaders_opengl41core/{}' \;
find ../shaders_opengl41core -type f | xargs -n1 glslangValidator
- name: Check OpenGL ES 3.2 shaders
working-directory: resources/shaders
run: >
mkdir ../shaders_opengles32
find . -type f -exec bash -c 'echo "#version 320 es" >
../shaders_opengles32/{} && cat {} >> ../shaders_opengles32/{}' \;
find ../shaders_opengles32 -type f | xargs -n1 glslangValidator