mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 06:36:43 +00:00

This commit promotes the SPIR-V backend from experimental to official status. As a result, SPIR-V will be built by default, simplifying integration and increasing accessibility for downstream projects. Discussion and RFC on Discourse: https://discourse.llvm.org/t/rfc-promoting-spir-v-to-an-official-target/83614 The PR reapplies the original patch https://github.com/llvm/llvm-project/pull/119653 and consecutive https://github.com/llvm/llvm-project/pull/123654, reverted due to buildbot failures.
30 lines
793 B
YAML
30 lines
793 B
YAML
name: SPIR-V Tests
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'llvm/lib/Target/SPIRV/**'
|
|
- 'llvm/test/CodeGen/SPIRV/**'
|
|
- '.github/workflows/spirv-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_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-22.04"]'
|