mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-09 15:52:23 +03:00
Improve CI
This commit is contained in:
parent
3b52a81623
commit
245c8972a1
3 changed files with 8 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -94,11 +94,15 @@
|
|||
packages = {
|
||||
default = ros2nix;
|
||||
inherit rosdistro rosdep-cache rosdep ros2nix;
|
||||
inherit (pkgs) mdsh;
|
||||
};
|
||||
checks = {
|
||||
mdsh = pkgs.runCommandNoCC "mdsh" {
|
||||
nativeBuildInputs = [ ros2nix ];
|
||||
} "cd ${self}; ${pkgs.mdsh}/bin/mdsh --frozen";
|
||||
mdsh-check-readme = pkgs.runCommandNoCC "mdsh"
|
||||
{ nativeBuildInputs = [ ros2nix ]; } ''
|
||||
mkdir $out; cd ${self};
|
||||
if ! ${pkgs.mdsh}/bin/mdsh --frozen; then
|
||||
echo 'Update README with `nix run .#mdsh`.'
|
||||
fi'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue