[llvm] [SPIR-V] Add pre-commit CI workflow (PR #74092)

Natalie Chouinard via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 13:36:05 PST 2023


================
@@ -0,0 +1,29 @@
+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:
----------------
sudonatalie wrote:

I thought it was necessary to supply a project so I went with `clang` but empty is fine and makes the build a bit faster.

https://github.com/llvm/llvm-project/pull/74092


More information about the llvm-commits mailing list