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: |     steps: | ||||||
|       - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
| 
 | 
 | ||||||
|  |       - uses: actions/cache@v2 | ||||||
|  |         with: | ||||||
|  |           path: '**/cpm_modules' | ||||||
|  |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
|  | 
 | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           brew install doxygen |           brew install doxygen | ||||||
|  | @ -19,7 +24,7 @@ jobs: | ||||||
| 
 | 
 | ||||||
|       - name: Build |       - name: Build | ||||||
|         run: | |         run: | | ||||||
|           cmake -Hdocumentation -Bbuild |           cmake -Sdocumentation -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||||
|           cmake --build build --target GenerateDocs |           cmake --build build --target GenerateDocs | ||||||
| 
 | 
 | ||||||
|       - name: Publish |       - name: Publish | ||||||
|  |  | ||||||
							
								
								
									
										33
									
								
								.github/workflows/install.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/install.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -17,21 +17,26 @@ jobs: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
| 
 | 
 | ||||||
|     - name: build and install library |       - uses: actions/cache@v2 | ||||||
|       run: | |         with: | ||||||
|         cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release |           path: '**/cpm_modules' | ||||||
|         sudo cmake --build build --target install |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
|         rm -rf build |  | ||||||
| 
 | 
 | ||||||
|     - name: configure |       - name: build and install library | ||||||
|       run: cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1 |         run: | | ||||||
|  |           cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release | ||||||
|  |           sudo cmake --build build --target install | ||||||
|  |           rm -rf build | ||||||
| 
 | 
 | ||||||
|     - name: build |       - name: configure | ||||||
|       run: cmake --build build --config Debug -j4 |         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DTEST_INSTALLED_VERSION=1 | ||||||
| 
 | 
 | ||||||
|     - name: test |       - name: build | ||||||
|       run: | |         run: cmake --build build --config Debug -j4 | ||||||
|         cd build | 
 | ||||||
|         ctest --build-config Debug |       - name: test | ||||||
|  |         run: | | ||||||
|  |           cd build | ||||||
|  |           ctest --build-config Debug | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/macos.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -17,15 +17,20 @@ jobs: | ||||||
|     runs-on: macos-latest |     runs-on: macos-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|        |        | ||||||
|     - name: configure |       - uses: actions/cache@v2 | ||||||
|       run: cmake -Htest -Bbuild -DCMAKE_BUILD_TYPE=Debug |         with: | ||||||
|  |           path: '**/cpm_modules' | ||||||
|  |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|     - name: build |       - name: configure | ||||||
|       run: cmake --build build -j4 |         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DCMAKE_BUILD_TYPE=Debug | ||||||
| 
 | 
 | ||||||
|     - name: test |       - name: build | ||||||
|       run: | |         run: cmake --build build -j4 | ||||||
|         cd build | 
 | ||||||
|         ctest --build-config Debug |       - name: test | ||||||
|  |         run: | | ||||||
|  |           cd build | ||||||
|  |           ctest --build-config Debug | ||||||
|  |  | ||||||
							
								
								
									
										19
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -14,13 +14,18 @@ jobs: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|        |        | ||||||
|     - name: configure |       - uses: actions/cache@v2 | ||||||
|       run: cmake -Hstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug |         with: | ||||||
|  |           path: '**/cpm_modules' | ||||||
|  |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|     - name: build |       - name: configure | ||||||
|       run: cmake --build build -j4 |         run: cmake -Sstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug | ||||||
| 
 | 
 | ||||||
|     - name: run |       - name: build | ||||||
|       run: ./build/Greeter |         run: cmake --build build -j4 | ||||||
|  | 
 | ||||||
|  |       - name: run | ||||||
|  |         run: ./build/Greeter | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/style.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -14,15 +14,20 @@ jobs: | ||||||
|     runs-on: macos-latest |     runs-on: macos-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|        |        | ||||||
|     - name: Install format dependencies |       - uses: actions/cache@v2 | ||||||
|       run: | |         with: | ||||||
|         brew install clang-format |           path: '**/cpm_modules' | ||||||
|         pip3 install cmake_format==0.6.11 pyyaml |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|     - name: configure |       - name: Install format dependencies | ||||||
|       run: cmake -Htest -Bbuild |         run: | | ||||||
|  |           brew install clang-format | ||||||
|  |           pip3 install cmake_format==0.6.11 pyyaml | ||||||
| 
 | 
 | ||||||
|     - name: check style |       - name: configure | ||||||
|       run: cmake --build build --target check-format |         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||||
|  | 
 | ||||||
|  |       - name: check style | ||||||
|  |         run: cmake --build build --target check-format | ||||||
|  |  | ||||||
							
								
								
									
										27
									
								
								.github/workflows/ubuntu.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/ubuntu.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -18,18 +18,23 @@ jobs: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
| 
 | 
 | ||||||
|     - name: configure |       - uses: actions/cache@v2 | ||||||
|       run: cmake -Htest -Bbuild -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug |         with: | ||||||
|  |           path: '**/cpm_modules' | ||||||
|  |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|     - name: build |       - name: configure | ||||||
|       run: cmake --build build -j4 |         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug | ||||||
| 
 | 
 | ||||||
|     - name: test |       - name: build | ||||||
|       run: | |         run: cmake --build build -j4 | ||||||
|         cd build |  | ||||||
|         ctest --build-config Debug |  | ||||||
| 
 | 
 | ||||||
|     - name: collect code coverage |       - name: test | ||||||
|       run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" |         run: | | ||||||
|  |           cd build | ||||||
|  |           ctest --build-config Debug | ||||||
|  | 
 | ||||||
|  |       - name: collect code coverage | ||||||
|  |         run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -17,15 +17,20 @@ jobs: | ||||||
|     runs-on: windows-latest |     runs-on: windows-latest | ||||||
|      |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|        |        | ||||||
|     - name: configure |       - uses: actions/cache@v2 | ||||||
|       run: cmake -Htest -Bbuild |         with: | ||||||
|  |           path: '**/cpm_modules' | ||||||
|  |           key: cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|     - name: build |       - name: configure | ||||||
|       run: cmake --build build --config Debug -j4 |         run: cmake -Stest -Bbuild -DCPM_SOURCE_CACHE=$(pwd)/cpm_modules | ||||||
| 
 | 
 | ||||||
|     - name: test |       - name: build | ||||||
|       run: | |         run: cmake --build build --config Debug -j4 | ||||||
|         cd build | 
 | ||||||
|         ctest --build-config Debug |       - name: test | ||||||
|  |         run: | | ||||||
|  |           cd build | ||||||
|  |           ctest --build-config Debug | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue