mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 03:56:39 +00:00 
			
		
		
		
	Update .gitlab-ci.yml
This commit is contained in:
		
							parent
							
								
									516fc0283b
								
							
						
					
					
						commit
						dcba3a1058
					
				
					 1 changed files with 39 additions and 39 deletions
				
			
		|  | @ -1,6 +1,4 @@ | ||||||
| # use the official gcc image, based on debian | linux-stable: | ||||||
| # can use verions as well, like gcc:5.2 |  | ||||||
| # see https://hub.docker.com/_/gcc/ |  | ||||||
|   image: gcc |   image: gcc | ||||||
|      |      | ||||||
|   cache: |   cache: | ||||||
|  | @ -30,13 +28,15 @@ build: | ||||||
|     artifacts: |     artifacts: | ||||||
|       paths: |       paths: | ||||||
|         - build/artifacts/ |         - build/artifacts/ | ||||||
|   # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time | darwin: | ||||||
|   cache: |   build: | ||||||
|  |     stage: build | ||||||
|  |     script:  | ||||||
|  |       - cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi | ||||||
|  |       - mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../ | ||||||
|  |       - make -j$cores_to_use | ||||||
|  |       - DESTDIR=artifacts make install | ||||||
|  |     artifacts: | ||||||
|       paths: |       paths: | ||||||
|       - "*.o" |         - build/artifacts/ | ||||||
| 
 | 
 | ||||||
| # TODO: run tests using the binary built before |  | ||||||
| #test: |  | ||||||
| #  stage: test |  | ||||||
| #  script: |  | ||||||
| #    - ls |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue