xref: /llvm-project/.github/workflows/clang-tests.yml (revision 859e6aa1008b80d9b10657bac37822a32ee14a23)
1name: Clang Tests
2
3permissions:
4  contents: read
5
6on:
7  workflow_dispatch:
8  push:
9    branches:
10      - 'release/**'
11    paths:
12      - 'clang/**'
13      - '.github/workflows/clang-tests.yml'
14      - '.github/workflows/llvm-project-tests.yml'
15      - '!llvm/**'
16  pull_request:
17    branches:
18      - 'release/**'
19    paths:
20      - 'clang/**'
21      - '.github/workflows/clang-tests.yml'
22      - '.github/workflows/llvm-project-tests.yml'
23      - '!llvm/**'
24
25concurrency:
26  # Skip intermediate builds: always.
27  # Cancel intermediate builds: only if it is a pull request build.
28  group: ${{ github.workflow }}-${{ github.ref }}
29  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
30
31jobs:
32  check_clang:
33    if: github.repository_owner == 'llvm'
34    name: Test clang,lldb,libclc
35    uses: ./.github/workflows/llvm-project-tests.yml
36    with:
37      build_target: check-clang
38      projects: clang;lldb;libclc
39