Browse Source
			
			
			Enable Github Actions for pull requests (without deployment)
			
			
				main
			
			
		 
		
			
				
					
						 Matthias Volk
					
					5 years ago
						Matthias Volk
					
					5 years ago
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 83A57678F739FCD3
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
6 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					.github/workflows/buildtest.yml
				
					
					
						
							
								
									
										
											
	
		
			
				|  | @ -1,6 +1,6 @@ | 
		
	
		
			
				|  |  | name: Build Test |  |  | name: Build Test | 
		
	
		
			
				|  |  | # Builds and tests storm on varius platforms |  |  |  | 
		
	
		
			
				|  |  | # also deploys images to dockerhub |  |  |  | 
		
	
		
			
				|  |  |  |  |  | # Builds and tests storm on various platforms | 
		
	
		
			
				|  |  |  |  |  | # also deploys images to Dockerhub | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | on: |  |  | on: | 
		
	
		
			
				|  |  |   schedule: |  |  |   schedule: | 
		
	
	
		
			
				|  | @ -8,6 +8,7 @@ on: | 
		
	
		
			
				|  |  |       - cron: '0 6 * * *' |  |  |       - cron: '0 6 * * *' | 
		
	
		
			
				|  |  |   # needed to trigger the workflow manually |  |  |   # needed to trigger the workflow manually | 
		
	
		
			
				|  |  |   workflow_dispatch: |  |  |   workflow_dispatch: | 
		
	
		
			
				|  |  |  |  |  |   pull_request: | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | env: |  |  | env: | 
		
	
		
			
				|  |  |   CARL_BRANCH: "master14" |  |  |   CARL_BRANCH: "master14" | 
		
	
	
		
			
				|  | @ -120,7 +121,7 @@ jobs: | 
		
	
		
			
				|  |  |       - name: Build storm |  |  |       - name: Build storm | 
		
	
		
			
				|  |  |         run: sudo docker exec storm bash -c "cd /opt/storm/build; make -j ${NR_JOBS}" |  |  |         run: sudo docker exec storm bash -c "cd /opt/storm/build; make -j ${NR_JOBS}" | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |         # A bit hacky... but its usefullnes has been proven in production |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         # A bit hacky... but its usefulness has been proven in production | 
		
	
		
			
				|  |  |       - name: Check release makeflags |  |  |       - name: Check release makeflags | 
		
	
		
			
				|  |  |         if: matrix.debugOrRelease == 'release' |  |  |         if: matrix.debugOrRelease == 'release' | 
		
	
		
			
				|  |  |         run: | |  |  |         run: | | 
		
	
	
		
			
				|  | @ -134,6 +135,8 @@ jobs: | 
		
	
		
			
				|  |  |         run: sudo docker exec storm bash -c "cd /opt/storm/build; ctest test --output-on-failure" |  |  |         run: sudo docker exec storm bash -c "cd /opt/storm/build; ctest test --output-on-failure" | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |       - name: Deploy storm |  |  |       - name: Deploy storm | 
		
	
		
			
				|  |  |  |  |  |         # Only deploy if using master (and not for pull requests) | 
		
	
		
			
				|  |  |  |  |  |         if: github.ref == 'refs/heads/master' | 
		
	
		
			
				|  |  |         run: | |  |  |         run: | | 
		
	
		
			
				|  |  |           sudo docker commit storm movesrwth/storm:ci-${{ matrix.debugOrRelease }} |  |  |           sudo docker commit storm movesrwth/storm:ci-${{ matrix.debugOrRelease }} | 
		
	
		
			
				|  |  |           sudo docker push movesrwth/storm:ci-${{ matrix.debugOrRelease }} |  |  |           sudo docker push movesrwth/storm:ci-${{ matrix.debugOrRelease }} | 
		
	
	
		
			
				|  | 
 |