From 79f4345a26439aa0dfce73e7df2170888b2d2fda Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Tue, 4 Oct 2022 12:25:58 +0200 Subject: [PATCH] Lock clang-format version (#158) * install clang-format using pip * update readme to include note on installation of format dependencies --- .github/workflows/style.yml | 6 ++---- README.md | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 97995f9..4600b0a 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -15,7 +15,7 @@ env: jobs: build: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -26,9 +26,7 @@ jobs: key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} - name: Install format dependencies - run: | - brew install clang-format - pip3 install cmake_format==0.6.11 pyyaml + run: pip3 install clang-format==14.0.6 cmake_format==0.6.11 pyyaml - name: configure run: cmake -Stest -Bbuild diff --git a/README.md b/README.md index 8c80345..3149bf6 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,11 @@ cmake --build build/test --target fix-format ``` See [Format.cmake](https://github.com/TheLartians/Format.cmake) for details. +These dependencies can be easily installed using pip. + +```bash +pip install clang-format==14.0.6 cmake_format==0.6.11 pyyaml +``` ### Build the documentation