diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 939b3e7..8d44a98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,4 +10,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - run: nix flake check diff --git a/README.md b/README.md index 0c8bdd4..273c67d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ This is work-in-progress. I'll add documentation after it works reasonably well. - ``` usage: ros2nix [-h] [--output OUTPUT | --output-as-ros-pkg-name | --output-as-nix-pkg-name] diff --git a/flake.nix b/flake.nix index 503f609..46f1472 100644 --- a/flake.nix +++ b/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''; }; } );