mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-11 00:24:48 +03:00
Improve CI
This commit is contained in:
parent
3b52a81623
commit
245c8972a1
3 changed files with 8 additions and 4 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -10,4 +10,5 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
|
|
@ -7,7 +7,6 @@ This is work-in-progress. I'll add documentation after it works
|
||||||
reasonably well.
|
reasonably well.
|
||||||
|
|
||||||
<!-- `$ python3 -m ros2nix --help` -->
|
<!-- `$ python3 -m ros2nix --help` -->
|
||||||
|
|
||||||
```
|
```
|
||||||
usage: ros2nix [-h]
|
usage: ros2nix [-h]
|
||||||
[--output OUTPUT | --output-as-ros-pkg-name | --output-as-nix-pkg-name]
|
[--output OUTPUT | --output-as-ros-pkg-name | --output-as-nix-pkg-name]
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -94,11 +94,15 @@
|
||||||
packages = {
|
packages = {
|
||||||
default = ros2nix;
|
default = ros2nix;
|
||||||
inherit rosdistro rosdep-cache rosdep ros2nix;
|
inherit rosdistro rosdep-cache rosdep ros2nix;
|
||||||
|
inherit (pkgs) mdsh;
|
||||||
};
|
};
|
||||||
checks = {
|
checks = {
|
||||||
mdsh = pkgs.runCommandNoCC "mdsh" {
|
mdsh-check-readme = pkgs.runCommandNoCC "mdsh"
|
||||||
nativeBuildInputs = [ ros2nix ];
|
{ nativeBuildInputs = [ ros2nix ]; } ''
|
||||||
} "cd ${self}; ${pkgs.mdsh}/bin/mdsh --frozen";
|
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