Run clippy through nix now
This commit is contained in:
		
							parent
							
								
									c892053cbd
								
							
						
					
					
						commit
						5e498f5882
					
				| @ -13,6 +13,6 @@ jobs: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Run clippy | ||||
|         run: nix develop . -c cargo clippy --no-default-features --features ${{ matrix.feature }} | ||||
|         run: nix build .#clippy_${{ matrix.feature }} | ||||
|       - name: Build & test | ||||
|         run: nix build .#${{ matrix.feature }} | ||||
							
								
								
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							| @ -18,18 +18,33 @@ | ||||
|           default = naersk-lib.buildPackage { | ||||
|             src = ./.; | ||||
|             doCheck = true; | ||||
|             mode = "test"; | ||||
|           }; | ||||
|           unix = naersk-lib.buildPackage { | ||||
|             src = ./.; | ||||
|             doCheck = true; | ||||
|             cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "unix"]; | ||||
|             cargoTestOptions  = x: x ++ ["--no-default-features" "--features" "unix"]; | ||||
|             mode = "test"; | ||||
|           }; | ||||
|           tcp = naersk-lib.buildPackage { | ||||
|             src = ./.; | ||||
|             doCheck = true; | ||||
|             cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "tcp"]; | ||||
|             cargoTestOptions  = x: x ++ ["--no-default-features" "--features" "tcp"]; | ||||
|             mode = "test"; | ||||
|           }; | ||||
|           clippy_unix = naersk-lib.buildPackage { | ||||
|             src = ./.; | ||||
|             cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "unix"]; | ||||
|             cargoTestOptions  = x: x ++ ["--no-default-features" "--features" "unix"]; | ||||
|             mode = "clippy"; | ||||
|           }; | ||||
|           clippy_tcp = naersk-lib.buildPackage { | ||||
|             src = ./.; | ||||
|             cargoBuildOptions = x: x ++ ["--no-default-features" "--features" "tcp"]; | ||||
|             cargoTestOptions  = x: x ++ ["--no-default-features" "--features" "tcp"]; | ||||
|             mode = "clippy"; | ||||
|           }; | ||||
|         };         | ||||
|         devShell = with pkgs; mkShell { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user