mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01: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:
		
							parent
							
								
									d5fc3051a5
								
							
						
					
					
						commit
						79f4345a26
					
				
					 2 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -15,7 +15,7 @@ env: | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: macos-latest |     runs-on: ubuntu-latest | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v2 |       - uses: actions/checkout@v2 | ||||||
|  | @ -26,9 +26,7 @@ jobs: | ||||||
|           key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} |           key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|       - name: Install format dependencies |       - name: Install format dependencies | ||||||
|         run: | |         run: pip3 install clang-format==14.0.6 cmake_format==0.6.11 pyyaml | ||||||
|           brew install clang-format |  | ||||||
|           pip3 install cmake_format==0.6.11 pyyaml |  | ||||||
| 
 | 
 | ||||||
|       - name: configure |       - name: configure | ||||||
|         run: cmake -Stest -Bbuild |         run: cmake -Stest -Bbuild | ||||||
|  |  | ||||||
|  | @ -88,6 +88,11 @@ cmake --build build/test --target fix-format | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| See [Format.cmake](https://github.com/TheLartians/Format.cmake) for details. | 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 | ### Build the documentation | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue