From 521d14151efb83c563fdf25ccb20e65c4aef602e Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 31 Jul 2024 09:06:15 -0500 Subject: [PATCH] Update clang-format version in cpp_style_checks Updated Ubuntu container version in pre-commit workflow to the 24.04. --- .github/workflows/cpp_style_checks.yml | 14 ++++++++++++-- .github/workflows/pre-commit.yml | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp_style_checks.yml b/.github/workflows/cpp_style_checks.yml index 24c4626e44..3b0df1789a 100644 --- a/.github/workflows/cpp_style_checks.yml +++ b/.github/workflows/cpp_style_checks.yml @@ -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' diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index b6ab0ea175..3c6c55b02d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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