Skip to content

Commit

Permalink
Update clang-format version in cpp_style_checks
Browse files Browse the repository at this point in the history
Updated Ubuntu container version in pre-commit workflow to the 24.04.
  • Loading branch information
oleksandr-pavlyk committed Jul 31, 2024
1 parent 7fa98fa commit 521d141
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cpp_style_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@ jobs:
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '11'
clang-format-version: '18'
check-path: 'libsyclinterface'
- name: Run clang-format style check for api headers.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '11'
clang-format-version: '18'
check-path: 'dpctl/apis'
- name: Run clang-format style check for libtensor/source.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'dpctl/tensor/libtensor/source'
- name: Run clang-format style check for libtensor/include.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'dpctl/tensor/libtensor/include'
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ permissions: read-all

jobs:
pre-commit:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Version of clang-format
run: |
clang-format --version
Expand Down

0 comments on commit 521d141

Please sign in to comment.