Fix setup-dxc not found and make sure workflows run if their file was changed (#2247)

* fix setup-dxc not found

* run validation-windows if its workflow file was changed

* run validation-macos if its workflow file was changed

* run validation-linux if its workflow file was changed

* run lazy if its workflow file was changed
This commit is contained in:
Teodor Tanasoaia
2023-02-10 13:44:57 +01:00
committed by GitHub
parent f038537e61
commit 40b8f66146
4 changed files with 14 additions and 8 deletions

View File

@@ -3,6 +3,9 @@ name: lazy
on:
push:
branches: [master]
pull_request:
paths:
- '.github/workflows/lazy.yml'
env:
CARGO_INCREMENTAL: false

View File

@@ -2,11 +2,12 @@ name: validation-linux
on:
pull_request:
paths:
- 'tests/out/spv/*.spvasm'
- 'tests/out/glsl/*.glsl'
- 'tests/out/dot/*.dot'
- 'tests/out/wgsl/*.wgsl'
- 'src/front/wgsl/*'
- '.github/workflows/validation-linux.yml'
- 'tests/out/spv/*.spvasm'
- 'tests/out/glsl/*.glsl'
- 'tests/out/dot/*.dot'
- 'tests/out/wgsl/*.wgsl'
- 'src/front/wgsl/*'
jobs:
validate-linux:

View File

@@ -2,7 +2,8 @@ name: validation-macos
on:
pull_request:
paths:
- 'tests/out/msl/*.msl'
- '.github/workflows/validation-macos.yml'
- 'tests/out/msl/*.msl'
jobs:
validate-macos:

View File

@@ -2,6 +2,7 @@ name: validation-windows
on:
pull_request:
paths:
- '.github/workflows/validation-windows.yml'
- 'tests/out/hlsl/*.hlsl'
jobs:
@@ -12,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- name: Add DirectXShaderCompiler
uses: napokue/setup-dxc@v1.1
uses: napokue/setup-dxc@v1.1.0
- run: make validate-hlsl-dxc
shell: sh
@@ -33,4 +34,4 @@ jobs:
shell: powershell
- run: make validate-hlsl-fxc
shell: sh
shell: sh