[llvm] [CI][libsycl] Add libsycl precommit testing job (PR #184174)

Nick Sarnie via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 06:20:26 PST 2026


https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/184174

>From 0744557ec0f28bf9cfd034b8b725ea279532b0b8 Mon Sep 17 00:00:00 2001
From: Nick Sarnie <nick.sarnie at intel.com>
Date: Mon, 2 Mar 2026 08:49:21 -0800
Subject: [PATCH 1/2] [CI] Add libsycl precommit testing

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
---
 .github/workflows/sycl-tests.yml | 48 ++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 .github/workflows/sycl-tests.yml

diff --git a/.github/workflows/sycl-tests.yml b/.github/workflows/sycl-tests.yml
new file mode 100644
index 0000000000000..38e2cfe39e674
--- /dev/null
+++ b/.github/workflows/sycl-tests.yml
@@ -0,0 +1,48 @@
+name: SYCL Tests
+
+permissions:
+  contents: read
+
+on:
+  pull_request:
+    paths:
+      - 'libsycl/**'
+      - '.github/workflows/sycl-tests.yml'
+
+concurrency:
+  # Skip intermediate builds: always.
+  # Cancel intermediate builds: only if it is a pull request build.
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
+jobs:
+  check_sycl:
+    if: github.repository_owner == 'llvm'
+    name: Test SYCL
+    runs-on: ubuntu-24.04
+    container:
+      image: ghcr.io/llvm/ci-ubuntu-24.04:latest
+    steps:
+      - uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+      - name: Setup ccache
+        uses: hendrikmuhs/ccache-action at 5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2.20
+        with:
+          max-size: 2G
+          key: sycl-ubuntu-24.04
+          variant: sccache
+      - name: Build and Test
+        run: |
+          mkdir build
+          cmake -GNinja \
+            -S llvm \
+            -B build \
+            -DCMAKE_BUILD_TYPE=Release \
+            -DLLVM_ENABLE_ASSERTIONS=ON \
+            -DCMAKE_C_COMPILER_LAUNCHER=sccache \
+            -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
+            -DLLVM_ENABLE_PROJECTS=clang \
+            -DLLVM_ENABLE_RUNTIMES="offload;openmp;libsycl" \
+            -DLLVM_TARGETS_TO_BUILD="host;SPIRV" \
+            -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON
+
+          ninja -C build check-sycl

>From 6396e517a3d1d6a75b5ae92eadc06b2f82264d59 Mon Sep 17 00:00:00 2001
From: Nick Sarnie <nick.sarnie at intel.com>
Date: Tue, 3 Mar 2026 06:20:12 -0800
Subject: [PATCH 2/2] remove mkdir

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
---
 .github/workflows/sycl-tests.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/sycl-tests.yml b/.github/workflows/sycl-tests.yml
index 38e2cfe39e674..b26b0383970a4 100644
--- a/.github/workflows/sycl-tests.yml
+++ b/.github/workflows/sycl-tests.yml
@@ -32,7 +32,6 @@ jobs:
           variant: sccache
       - name: Build and Test
         run: |
-          mkdir build
           cmake -GNinja \
             -S llvm \
             -B build \



More information about the llvm-commits mailing list