mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
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:
3
.github/workflows/lazy.yml
vendored
3
.github/workflows/lazy.yml
vendored
@@ -3,6 +3,9 @@ name: lazy
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/lazy.yml'
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: false
|
||||
|
||||
11
.github/workflows/validation-linux.yml
vendored
11
.github/workflows/validation-linux.yml
vendored
@@ -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:
|
||||
|
||||
3
.github/workflows/validation-macos.yml
vendored
3
.github/workflows/validation-macos.yml
vendored
@@ -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:
|
||||
|
||||
5
.github/workflows/validation-windows.yml
vendored
5
.github/workflows/validation-windows.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user