Skip to content

Commit

Permalink
[CI] Use clang-format from nightly builds (#5126)
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
alexbatashev authored Dec 12, 2021
1 parent cd722fc commit d3649d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/sycl_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ on:

jobs:
lint:
# TODO use nightly builds of SYCL to get clang-format
runs-on: ubuntu-latest
container:
image: ghcr.io/intel/llvm/sycl_ubuntu2004_nightly:no-drivers
steps:
- name: Get clang-format first
run: sudo apt-get install -yqq clang-format

- uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Run clang-format
uses: ./devops/actions/clang-format

Expand Down

0 comments on commit d3649d8

Please sign in to comment.