mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Simplify macOS CI jobs
This commit is contained in:
		
							
								
								
									
										43
									
								
								.github/workflows/mac-builds-m1.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										43
									
								
								.github/workflows/mac-builds-m1.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,43 +0,0 @@ | ||||
| name: Arm Mac builds | ||||
|  | ||||
| on: [push, pull_request] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: macos-14 | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         cxx: | ||||
|           - clang++ | ||||
|         build_type: [Debug, Release] | ||||
|         std: [14, 17] | ||||
|         include: | ||||
|           - build_type: Debug | ||||
|             examples: ON | ||||
|             extra_tests: ON | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|  | ||||
|     - name: Configure build | ||||
|       working-directory: ${{runner.workspace}} | ||||
|       env: | ||||
|         CXX: ${{matrix.cxx}} | ||||
|         CXXFLAGS: ${{matrix.cxxflags}} | ||||
|       run: | | ||||
|         cmake -Bbuild -S$GITHUB_WORKSPACE \ | ||||
|               -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||||
|               -DCMAKE_CXX_STANDARD=${{matrix.std}} \ | ||||
|               -DCMAKE_CXX_STANDARD_REQUIRED=ON \ | ||||
|               -DCATCH_DEVELOPMENT_BUILD=ON \ | ||||
|               -DCATCH_BUILD_EXAMPLES=${{matrix.examples}} \ | ||||
|               -DCATCH_BUILD_EXTRA_TESTS=${{matrix.examples}} | ||||
|  | ||||
|     - name: Build tests + lib | ||||
|       working-directory: ${{runner.workspace}}/build | ||||
|       run: make -j `sysctl -n hw.ncpu` | ||||
|  | ||||
|     - name: Run tests | ||||
|       working-directory: ${{runner.workspace}}/build | ||||
|       run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure | ||||
							
								
								
									
										37
									
								
								.github/workflows/mac-builds.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/mac-builds.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,47 +1,34 @@ | ||||
| name: Intel Mac builds | ||||
| name: Mac Builds | ||||
|  | ||||
| on: [push, pull_request] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     # From macos-14 forward, the baseline "macos-X" image is Arm based, | ||||
|     # and not Intel based. Thus this is the newest image we can use for | ||||
|     # Intel MacOS CI, and there don't seem to be any plans to keep providing | ||||
|     # the Intel based images for free to OSS projects. | ||||
|     runs-on: macos-13 | ||||
|     # and not Intel based. | ||||
|     runs-on: ${{matrix.image}} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         cxx: | ||||
|           - clang++ | ||||
|         image: [macos-13, macos-14, macos-15] | ||||
|         build_type: [Debug, Release] | ||||
|         std: [14, 17] | ||||
|         include: | ||||
|           - build_type: Debug | ||||
|             examples: ON | ||||
|             extra_tests: ON | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|  | ||||
|     - name: Configure build | ||||
|       working-directory: ${{runner.workspace}} | ||||
|       env: | ||||
|         CXX: ${{matrix.cxx}} | ||||
|         CXXFLAGS: ${{matrix.cxxflags}} | ||||
|     - name: Configure | ||||
|       run: | | ||||
|         cmake -Bbuild -S$GITHUB_WORKSPACE \ | ||||
|         cmake -Bbuild -GNinja \ | ||||
|               -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||||
|               -DCMAKE_CXX_STANDARD=${{matrix.std}} \ | ||||
|               -DCMAKE_CXX_STANDARD_REQUIRED=ON \ | ||||
|               -DCATCH_DEVELOPMENT_BUILD=ON \ | ||||
|               -DCATCH_BUILD_EXAMPLES=${{matrix.examples}} \ | ||||
|               -DCATCH_BUILD_EXTRA_TESTS=${{matrix.examples}} | ||||
|               -DCATCH_BUILD_EXAMPLES=ON \ | ||||
|               -DCATCH_BUILD_EXTRA_TESTS=ON | ||||
|  | ||||
|     - name: Build tests + lib | ||||
|       working-directory: ${{runner.workspace}}/build | ||||
|       run: make -j `sysctl -n hw.ncpu` | ||||
|     - name: Build | ||||
|       run: cmake --build build | ||||
|  | ||||
|     - name: Run tests | ||||
|       working-directory: ${{runner.workspace}}/build | ||||
|       run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure | ||||
|     - name: Test | ||||
|       run: ctest --test-dir build -j --output-on-failure | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris Thrasher
					Chris Thrasher