mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	cache CPM.cmake dependencies
This commit is contained in:
		
							parent
							
								
									cc810d0ea2
								
							
						
					
					
						commit
						e8d386c823
					
				
					 7 changed files with 102 additions and 67 deletions
				
			
		
							
								
								
									
										7
									
								
								.github/workflows/documentation.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/documentation.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -12,6 +12,11 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
| 
 | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           brew install doxygen | ||||
|  | @ -19,7 +24,7 @@ jobs: | |||
| 
 | ||||
|       - name: Build | ||||
|         run: | | ||||
|           cmake -Hdocumentation -Bbuild | ||||
|           cmake -Sdocumentation -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||
|           cmake --build build --target GenerateDocs | ||||
| 
 | ||||
|       - name: Publish | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/install.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/install.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -19,6 +19,11 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
| 
 | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: build and install library | ||||
|         run: | | ||||
|           cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release | ||||
|  | @ -26,7 +31,7 @@ jobs: | |||
|           rm -rf build | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1 | ||||
|         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DTEST_INSTALLED_VERSION=1 | ||||
| 
 | ||||
|       - name: build | ||||
|         run: cmake --build build --config Debug -j4 | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -19,8 +19,13 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
|        | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Htest -Bbuild -DCMAKE_BUILD_TYPE=Debug | ||||
|         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DCMAKE_BUILD_TYPE=Debug | ||||
| 
 | ||||
|       - name: build | ||||
|         run: cmake --build build -j4 | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -16,8 +16,13 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
|        | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Hstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug | ||||
|         run: cmake -Sstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug | ||||
| 
 | ||||
|       - name: build | ||||
|         run: cmake --build build -j4 | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -16,13 +16,18 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
|        | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: Install format dependencies | ||||
|         run: | | ||||
|           brew install clang-format | ||||
|           pip3 install cmake_format==0.6.11 pyyaml | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Htest -Bbuild | ||||
|         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||
| 
 | ||||
|       - name: check style | ||||
|         run: cmake --build build --target check-format | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/ubuntu.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/ubuntu.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -20,8 +20,13 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
| 
 | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Htest -Bbuild -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug | ||||
|         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug | ||||
| 
 | ||||
|       - name: build | ||||
|         run: cmake --build build -j4 | ||||
|  |  | |||
							
								
								
									
										7
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -19,8 +19,13 @@ jobs: | |||
|     steps: | ||||
|       - uses: actions/checkout@v1 | ||||
|        | ||||
|       - uses: actions/cache@v2 | ||||
|         with: | ||||
|           path: '**/cpm_modules' | ||||
|           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||
| 
 | ||||
|       - name: configure | ||||
|       run: cmake -Htest -Bbuild | ||||
|         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||
| 
 | ||||
|       - name: build | ||||
|         run: cmake --build build --config Debug -j4 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue