feat: adds GitHub Workflow
This commit is contained in:
		
							parent
							
								
									dbd97f8666
								
							
						
					
					
						commit
						375173e13f
					
				
							
								
								
									
										38
									
								
								.github/workflow/prod.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										38
									
								
								.github/workflow/prod.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - master | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Install protoc | ||||
|         uses: arduino/setup-protoc@v1 | ||||
| 
 | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Cache dependencies | ||||
|         uses: actions/cache@v3 | ||||
|         with: | ||||
|           path: | | ||||
|             ~/.cargo | ||||
|             target/ | ||||
|           key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||||
|           restore-keys: ${{ runner.os }}-cargo- | ||||
| 
 | ||||
|       - name: Install Rust | ||||
|         uses: actions-rs/toolchain@v1 | ||||
|         with: | ||||
|           profile: minimal | ||||
|           toolchain: stable | ||||
| 
 | ||||
|       - name: Build and test code | ||||
|         run: | | ||||
|           cargo build --verbose | ||||
|           cargo test --verbose | ||||
							
								
								
									
										0
									
								
								flake.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										0
									
								
								flake.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user