Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 73e832f

Browse files
authored
Update clang-format.yml
1 parent c948097 commit 73e832f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/clang-format.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
steps:
12-
- name: Get clang-format first
13-
run: sudo apt-get install -yqq clang-format-9
1411

12+
container:
13+
image: ghcr.io/intel/llvm/sycl_ubuntu2004_nightly:no-drivers
14+
15+
steps:
1516
- uses: actions/checkout@v2
1617
with:
1718
fetch-depth: 2
18-
19-
- name: Get clang-format-diff.py tool
20-
run: |
21-
wget https://raw.githubusercontent.com/intel/llvm/sycl/clang/tools/clang-format/clang-format-diff.py
22-
chmod u+x clang-format-diff.py
2319

2420
- name: Run clang-format for the patch
2521
shell: bash {0}
2622
run: |
2723
git clang-format ${GITHUB_SHA}^1
2824
git diff > ./clang-format.patch
25+
2926
# Add patch with formatting fixes to CI job artifacts
3027
- uses: actions/upload-artifact@v1
3128
with:

0 commit comments

Comments
 (0)