Skip to content

Commit c228ea7

Browse files
xlaukolanza
authored andcommitted
[CIR][github] Setup github test CIR workflow. (llvm#332)
Closes llvm#288 The action mirrors https://github.com/llvm/llvm-project/blob/main/.github/workflows/clang-tests.yml with a few minor differences: - it is not restricted to: `github.repository_owner == 'llvm'` - it triggers on pull requests and pushes to `main` instead of `release` branches I suggest adding branch protection rule to require tests to pass for each pull request: `Settings -> Branches -> Add branch protection rule -> Require status checks to pass before merging`
1 parent cd9de81 commit c228ea7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/clang-cir-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Clang CIR Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- 'main'
11+
paths:
12+
- 'clang/**'
13+
- '.github/workflows/clang-cir-tests.yml'
14+
- '.github/workflows/llvm-project-tests.yml'
15+
- '!llvm/**'
16+
pull_request:
17+
branches:
18+
- 'main'
19+
paths:
20+
- 'clang/**'
21+
- '.github/workflows/clang-cir-tests.yml'
22+
- '.github/workflows/llvm-project-tests.yml'
23+
- '!llvm/**'
24+
25+
concurrency:
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+
31+
jobs:
32+
check_clang_cir:
33+
name: Test clang-cir
34+
uses: ./.github/workflows/llvm-project-tests.yml
35+
with:
36+
build_target: check-clang-cir
37+
projects: clang;mlir;cir

0 commit comments

Comments
 (0)