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