Skip to content

Commit 7315799

Browse files
authored
[SYCLomatic] Add GHA job for clangformat (#2234)
Signed-off-by: Xiaodong Li <[email protected]>
1 parent 9af8376 commit 7315799

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci_lin.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Linux Github Action CI
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- SYCLomatic
10+
types: [opened, synchronize, reopened, ready_for_review]
11+
12+
env:
13+
BUILD_CONCURRENCY: 2
14+
MACOS_BUILD_CONCURRENCY: 3
15+
TEST_TIMEOUT: 3600
16+
17+
jobs:
18+
clang-format:
19+
runs-on: build
20+
steps:
21+
- name: 'PR commits + 1'
22+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
persist-credentials: false
27+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
28+
- name: Run clang-format
29+
uses: ./devops/actions/clang-format-SYCLomatic
30+

0 commit comments

Comments
 (0)