[llvm] [Github] Remove call to llvm-project-tests.yml from spirv-tests.yml (PR #153869)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 13:20:57 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/153869
This will eventually allow for removing llvm-project-tests.yml. This
should significantly reduce the complexity of these workflows at the
cost of a little bit of duplication standard to github actions.
>From 4053d85570d9b745b1ce30f9aa11cd7cccc929d8 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 15 Aug 2025 20:20:45 +0000
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.6
---
.github/workflows/spirv-tests.yml | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/spirv-tests.yml b/.github/workflows/spirv-tests.yml
index f15ca1cb64ba5..8205f90a068f7 100644
--- a/.github/workflows/spirv-tests.yml
+++ b/.github/workflows/spirv-tests.yml
@@ -4,7 +4,6 @@ permissions:
contents: read
on:
- workflow_dispatch:
pull_request:
paths:
- 'llvm/lib/Target/SPIRV/**'
@@ -21,9 +20,26 @@ jobs:
check_spirv:
if: github.repository_owner == 'llvm'
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'
- os_list: '["ubuntu-24.04"]'
+ runs-on: ubuntu-24.04
+ container:
+ image: ghcr.io/llvm/ci-ubuntu-24.04:latest
+ volumes:
+ - /mnt:/mnt
+ steps:
+ - uses: actions/checkout at 08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+ - name: Setup ccache
+ uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
+ with:
+ max-size: 2G
+ key: spirv-ubuntu-24.04
+ variant: sccache
+ - name: Build and Test
+ run: |
+ mkdir /mnt/build
+ cmake -GNinja \
+ -DLLVM_ENABLE_ASSERTIONS=ON \
+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
+ -DLLVM_TARGETS_TO_BUILD="SPIRV" \
+ -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON
+ ninja -C /mnt/build check-llvm-codegen-spirv
More information about the llvm-commits
mailing list