Run clippy through nix now
All checks were successful
Build library & run tests / build (tcp) (push) Successful in 16s
Build library & run tests / build (unix) (push) Successful in 16s

This commit is contained in:
Kodi Craft 2024-06-23 01:50:36 +02:00
parent c892053cbd
commit 5e498f5882
Signed by: kodi
GPG Key ID: 69D9EED60B242822
2 changed files with 16 additions and 1 deletions

View File

@ -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 }}

View File

@ -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 {