mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| osxcross universal:
 | |
|   image: git.do.srb2.org:5050/stjr/srb2ci/srb2ci:stable
 | |
| 
 | |
|   dependencies:
 | |
|     - osxcross arm64
 | |
|     - osxcross x86_64
 | |
|   needs:
 | |
|     - job: osxcross arm64
 | |
|     - job: osxcross x86_64
 | |
| 
 | |
|   stage: osxcross
 | |
| 
 | |
|   artifacts:
 | |
|     paths:
 | |
|       - "dist/bin"
 | |
|       - "dist/src"
 | |
|     expose_as: "Mac Universal"
 | |
|     name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-lipo-apple-darwin21.4"
 | |
| 
 | |
|   script:
 | |
|     - - |
 | |
|          # mkdir
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:mkdir[collapsed=true]\r\e[0KMaking dist folder"
 | |
|          mkdir --parents --verbose dist/src dist/bin
 | |
|       - |
 | |
|           # mkdir
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:mkdir\r\e[0K"
 | |
| 
 | |
|     - - |
 | |
|          # copy-config
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:x86_64-config[collapsed=true]\r\e[0KCopying x86_64 config"
 | |
|       - cp --reflink=auto --sparse=always --verbose --target-directory=dist/src/ build.*/dist/*.h
 | |
|       - |
 | |
|           # x86_64-config
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:x86_64-config\r\e[0K"
 | |
| 
 | |
|     - - |
 | |
|          # copy-build
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:copy-build[collapsed=true]\r\e[0KCopying ALL build"
 | |
|       - cp --reflink=auto --sparse=always --recursive --verbose --target-directory=dist/ build.*/bin/
 | |
|       - |
 | |
|           # copy-build
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:copy-build\r\e[0K"
 | |
| 
 | |
|     - - |
 | |
|          # link-build
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:link-build[collapsed=true]\r\e[0KLinking universal build"
 | |
|       - lipo -create -output dist/bin/ringracers_$CI_PIPELINE_ID.app/Contents/MacOS/ringracers_$CI_PIPELINE_ID build.*/bin/ringracers_$CI_PIPELINE_ID.app/Contents/MacOS/ringracers_$CI_PIPELINE_ID
 | |
|       - |
 | |
|           # universal-build
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:link-build\r\e[0K"
 | |
| 
 | |
|     - - |
 | |
|          # arm64-verify
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:arm64-verify[collapsed=true]\r\e[0KVerifying arm64"
 | |
|       - lipo dist/bin/ringracers_$CI_PIPELINE_ID.app/Contents/MacOS/ringracers_$CI_PIPELINE_ID -verify_arch arm64
 | |
|       - |
 | |
|           # arm64-verify
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:arm64-verify\r\e[0K"
 | |
| 
 | |
|     - - |
 | |
|          # x86_64-verify
 | |
|          echo -e "\e[0Ksection_start:`date +%s`:x86_64-verify[collapsed=true]\r\e[0KVerifying x86_64"
 | |
|       - lipo dist/bin/ringracers_$CI_PIPELINE_ID.app/Contents/MacOS/ringracers_$CI_PIPELINE_ID -verify_arch x86_64
 | |
|       - |
 | |
|           # x86_64-verify
 | |
|           echo -e "\e[0Ksection_end:`date +%s`:x86_64-verify\r\e[0K"
 | 
