Try using a matrix to run workflows in parallel
This commit is contained in:
		
							parent
							
								
									fe5dabec45
								
							
						
					
					
						commit
						7227379e63
					
				| @ -3,15 +3,16 @@ on: [push] | |||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|  |     strategy: | ||||||
|  |       matrix: | ||||||
|  |         feature: | ||||||
|  |           - tcp | ||||||
|  |           - unix | ||||||
|     runs-on: nix |     runs-on: nix | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - name: Run clippy (tcp feature) |       - name: Run clippy | ||||||
|         run: nix develop . -c cargo clippy --no-default-features --features tcp |         run: nix develop . -c cargo clippy --no-default-features --features ${{ matrix.feature }} | ||||||
|       - name: Run clippy (unix feature) |       - name: Build & test | ||||||
|         run: nix develop . -c cargo clippy --no-default-features --features unix |         run: nix build .#${{ matrix.feature }} | ||||||
|       - name: Build & test (tcp feature) |  | ||||||
|         run: nix build .#tcp |  | ||||||
|       - name: Build & test (unix feature) |  | ||||||
|         run: nix build .#unix |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user