Write out game config nicely #3067
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |