[llvm] [mlir][spv] Enable spirv-tests CI to run for mlir-spv target tests (PR #152124)

Davide Grohmann via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 04:29:35 PDT 2025


https://github.com/davidegrohmann updated https://github.com/llvm/llvm-project/pull/152124

>From 2acd645a7ba26eb7ae6e557d27ed6c6e4e8221e2 Mon Sep 17 00:00:00 2001
From: Davide Grohmann <davide.grohmann at arm.com>
Date: Tue, 5 Aug 2025 13:02:03 +0200
Subject: [PATCH] [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 <davide.grohmann at arm.com>
Change-Id: Ied323152e36b95d6f21ed7d4ce4f5f813f280f17
---
 .github/workflows/llvm-project-tests.yml | 2 +-
 .github/workflows/spirv-tests.yml        | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index d40ed5babb459..7dfdad99c1128 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -137,7 +137,7 @@ jobs:
                 -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
                 $extra_cmake_args \
                 ${{ inputs.extra_cmake_args }}
-          ninja -C "$builddir" '${{ inputs.build_target }}'
+          ninja -C "$builddir" ${{ inputs.build_target }}
 
       - name: Build and Test libclc
         if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"
diff --git a/.github/workflows/spirv-tests.yml b/.github/workflows/spirv-tests.yml
index f15ca1cb64ba5..4b5a797adf24b 100644
--- a/.github/workflows/spirv-tests.yml
+++ b/.github/workflows/spirv-tests.yml
@@ -9,6 +9,7 @@ on:
     paths:
       - 'llvm/lib/Target/SPIRV/**'
       - 'llvm/test/CodeGen/SPIRV/**'
+      - 'mlir/test/Target/SPIRV/**'
       - '.github/workflows/spirv-tests.yml'
 
 concurrency:
@@ -23,7 +24,7 @@ jobs:
     name: Test SPIR-V
     uses: ./.github/workflows/llvm-project-tests.yml
     with:
-      build_target: check-llvm-codegen-spirv
-      projects:
-      extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
+      build_target: check-llvm-codegen-spirv check-mlir
+      projects: mlir
+      extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="X86;SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
       os_list: '["ubuntu-24.04"]'



More information about the llvm-commits mailing list