Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/_shared-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,10 @@ jobs:

shader-validation:
if: inputs.run-shader-validation
name: Validate shader compilation (${{ matrix.config.name }})
name: Validate shader compilation
runs-on: windows-2025
permissions:
contents: read
strategy:
matrix:
config:
- name: "Flatrim"
file: ".github/configs/shader-validation.yaml"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand All @@ -152,7 +146,7 @@ jobs:
if: steps.check-hlsl.outputs.skip != 'true'
uses: ./.github/actions/setup-build-environment
with:
cache-key-suffix: "validation-${{ matrix.config.name }}${{ inputs.cache-key-suffix }}"
cache-key-suffix: "validation${{ inputs.cache-key-suffix }}"
- name: Prepare shaders
if: steps.check-hlsl.outputs.skip != 'true'
uses: ./.github/actions/prepare-shaders
Expand Down Expand Up @@ -185,21 +179,21 @@ jobs:
}
}

- name: Validate shader compilation (${{ matrix.config.name }})
- name: Validate shader compilation
if: steps.check-hlsl.outputs.skip != 'true'
shell: bash
run: |
if [ -z "${{ steps.find_fxc.outputs.fxc_path }}" ]; then
echo "fxc.exe not found - shader validation requires fxc.exe. Set --fxc to a valid path or ensure fxc.exe is in PATH." >&2
exit 1
fi
hlslkit-compile --fxc "${{ steps.find_fxc.outputs.fxc_path }}" --shader-dir build/ALL/aio/Shaders --output-dir build/ShaderCache --config ${{ matrix.config.file }} --max-warnings 0 --suppress-warnings X1519
hlslkit-compile --fxc "${{ steps.find_fxc.outputs.fxc_path }}" --shader-dir build/ALL/aio/Shaders --output-dir build/ShaderCache --config .github/configs/shader-validation.yaml --max-warnings 0 --suppress-warnings X1519

- name: Upload shader validation logs
if: failure() && steps.check-hlsl.outputs.skip != 'true'
uses: actions/upload-artifact@v7
with:
name: shader-validation-logs-${{ matrix.config.name }}
name: shader-validation-logs
path: |
build/ShaderCache/new_issues.log
build/ShaderCache/*.log
Expand Down
Loading