Skip to content

Commit d3649d8

Browse files
authored
[CI] Use clang-format from nightly builds (#5126)
[Contributing guide](https://github.com/intel/llvm/blob/sycl/CONTRIBUTING.md) suggests using the same version of clang-format, that is build from tip of this repository. That caused problems in the past, where the newer clang-format does the job differently to what's being used in CI. This patch switches to default clang-format installation to the one, that comes with nightly builds. This would allow us to minimize the impact of different clang-format versions.
1 parent cd722fc commit d3649d8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ on:
77

88
jobs:
99
lint:
10-
# TODO use nightly builds of SYCL to get clang-format
1110
runs-on: ubuntu-latest
11+
container:
12+
image: ghcr.io/intel/llvm/sycl_ubuntu2004_nightly:no-drivers
1213
steps:
13-
- name: Get clang-format first
14-
run: sudo apt-get install -yqq clang-format
15-
1614
- uses: actions/checkout@v2
1715
with:
1816
fetch-depth: 2
19-
2017
- name: Run clang-format
2118
uses: ./devops/actions/clang-format
2219

0 commit comments

Comments
 (0)