mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 05:41:13 +00:00 
			
		
		
		
	Update build workflow
Currently the branch protection is set on specific workflows which needs to be run every time a PR is created (or a push). Because it isn't possible to tell the branch protection only to do it's job if specific files are touched or not, we just need to make sure these jobs are always started. Also, because we now check the builds for an MSRV, and the title would change all the time, that would cause the branch protection to be updated everytime the MSRV would change. This is now also addressed by naming that job 'msrv' instead of the version number.
This commit is contained in:
		
					parent
					
						
							
								ae59472d9a
							
						
					
				
			
			
				commit
				
					
						7ce2372f51
					
				
			
		
					 2 changed files with 10 additions and 11 deletions
				
			
		
							
								
								
									
										9
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -30,7 +30,10 @@ jobs: | ||||||
|       matrix: |       matrix: | ||||||
|         channel: |         channel: | ||||||
|           - "rust-toolchain" # The version defined in rust-toolchain |           - "rust-toolchain" # The version defined in rust-toolchain | ||||||
|           - "1.60.0" # The supported MSRV |           - "msrv" # The supported MSRV | ||||||
|  |         include: | ||||||
|  |           - channel: "msrv" | ||||||
|  |             version: "1.60.0" | ||||||
| 
 | 
 | ||||||
|     name: Build and Test ${{ matrix.channel }} |     name: Build and Test ${{ matrix.channel }} | ||||||
| 
 | 
 | ||||||
|  | @ -63,7 +66,7 @@ jobs: | ||||||
|         with: |         with: | ||||||
|           profile: minimal |           profile: minimal | ||||||
|           override: true |           override: true | ||||||
|           toolchain: ${{ matrix.channel }} |           toolchain: ${{ matrix.version }} | ||||||
|       # End Install the MSRV channel to be used |       # End Install the MSRV channel to be used | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -193,5 +196,5 @@ jobs: | ||||||
|         if: ${{ matrix.channel == 'rust-toolchain' }} |         if: ${{ matrix.channel == 'rust-toolchain' }} | ||||||
|         with: |         with: | ||||||
|           name: vaultwarden |           name: vaultwarden | ||||||
|           path: target/${{ matrix.target-triple }}/release/vaultwarden |           path: target/release/vaultwarden | ||||||
|       # End Upload artifact to Github Actions |       # End Upload artifact to Github Actions | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								.github/workflows/hadolint.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/hadolint.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -1,13 +1,9 @@ | ||||||
| name: Hadolint | name: Hadolint | ||||||
| 
 | 
 | ||||||
| on: | on: [ | ||||||
|   push: |       push, | ||||||
|     paths: |       pull_request | ||||||
|       - "docker/**" |     ] | ||||||
| 
 |  | ||||||
|   pull_request: |  | ||||||
|     paths: |  | ||||||
|       - "docker/**" |  | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   hadolint: |   hadolint: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue