File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
- steps :
12
- - name : Get clang-format first
13
- run : sudo apt-get install -yqq clang-format-9
14
11
12
+ container :
13
+ image : ghcr.io/intel/llvm/sycl_ubuntu2004_nightly:no-drivers
14
+
15
+ steps :
15
16
- uses : actions/checkout@v2
16
17
with :
17
18
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
23
19
24
20
- name : Run clang-format for the patch
21
+ shell : bash {0}
25
22
run : |
26
- git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | python clang-format-diff.py -p1 -binary clang-format-9 > ./clang-format.patch
23
+ git clang-format ${GITHUB_SHA}^1
24
+ git diff > ./clang-format.patch
25
+
27
26
# Add patch with formatting fixes to CI job artifacts
28
27
- uses : actions/upload-artifact@v1
29
28
with :
You can’t perform that action at this time.
0 commit comments