Skip to content

Commit efc0dcb

Browse files
Update clang-format version in cpp_style_checks
Updated Ubuntu container version in pre-commit workflow to the 24.04.
1 parent 1462d8c commit efc0dcb

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/cpp_style_checks.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,20 @@ jobs:
2020
- name: Run clang-format style check for C/C++ programs.
2121
uses: jidicula/clang-format-action@v4.13.0
2222
with:
23-
clang-format-version: '11'
23+
clang-format-version: '18'
2424
check-path: 'libsyclinterface'
2525
- name: Run clang-format style check for api headers.
2626
uses: jidicula/clang-format-action@v4.13.0
2727
with:
28-
clang-format-version: '11'
28+
clang-format-version: '18'
2929
check-path: 'dpctl/apis'
30+
- name: Run clang-format style check for libtensor/source.
31+
uses: jidicula/clang-format-action@v4.13.0
32+
with:
33+
clang-format-version: '18'
34+
check-path: 'dpctl/tensor/libtensor/source'
35+
- name: Run clang-format style check for libtensor/include.
36+
uses: jidicula/clang-format-action@v4.13.0
37+
with:
38+
clang-format-version: '18'
39+
check-path: 'dpctl/tensor/libtensor/include'

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ permissions: read-all
99

1010
jobs:
1111
pre-commit:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- uses: actions/checkout@v4.1.7
1515
- uses: actions/setup-python@v5
1616
with:
17-
python-version: '3.10'
17+
python-version: '3.12'
1818
- name: Version of clang-format
1919
run: |
2020
clang-format --version

0 commit comments

Comments
 (0)