1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 05:31:13 +02:00

Lock clang-format version (#158)

* install clang-format using pip

* update readme to include note on installation of format dependencies
This commit is contained in:
Lars Melchior 2022-10-04 12:25:58 +02:00 committed by GitHub
parent d5fc3051a5
commit 79f4345a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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