Skip to content

Commit 2acd645

Browse files
[mlir][spv] Enable spirv-tests CI to run for mlir-spv target tests
This should execute also the MLIR SPIRV Target tests which require the SPIRV-Tools validator Signed-off-by: Davide Grohmann <[email protected]> Change-Id: Ied323152e36b95d6f21ed7d4ce4f5f813f280f17
1 parent e0df5f8 commit 2acd645

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
138138
$extra_cmake_args \
139139
${{ inputs.extra_cmake_args }}
140-
ninja -C "$builddir" '${{ inputs.build_target }}'
140+
ninja -C "$builddir" ${{ inputs.build_target }}
141141
142142
- name: Build and Test libclc
143143
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"

.github/workflows/spirv-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
paths:
1010
- 'llvm/lib/Target/SPIRV/**'
1111
- 'llvm/test/CodeGen/SPIRV/**'
12+
- 'mlir/test/Target/SPIRV/**'
1213
- '.github/workflows/spirv-tests.yml'
1314

1415
concurrency:
@@ -23,7 +24,7 @@ jobs:
2324
name: Test SPIR-V
2425
uses: ./.github/workflows/llvm-project-tests.yml
2526
with:
26-
build_target: check-llvm-codegen-spirv
27-
projects:
28-
extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
27+
build_target: check-llvm-codegen-spirv check-mlir
28+
projects: mlir
29+
extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="X86;SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
2930
os_list: '["ubuntu-24.04"]'

0 commit comments

Comments
 (0)