Commit graph

15 commits

Author SHA1 Message Date
Michal Sojka
b831c70ffd release.nix: Consider only regular files as examples
Recently added commit a9a387b49 ("Add flake template", 2024-09-12),
when combined with the previous release.nix changes, resulted in
adding the example/flake subdirectory as an output attribute, which
makes no sense.
2024-11-20 20:13:44 -05:00
Michal Sojka
aa1a8120bd release.nix: Allow building just examples
To do that, we remove the special toplevelOnly parameter introduced in
the last commit and reuse the distro parameter for that. When its
value starts with a dot, it's not a ROS distro name, but an internal
value, which we use to distinguish what to return.
2024-11-20 20:13:44 -05:00
Michal Sojka
b14a85a483 release.nix: Allow building only top-level packages
The plan is to have one Hydra jobset for each distro and one for just
the toplevel packages. This allows the latter.
2024-11-20 20:13:44 -05:00
Michal Sojka
a451881dff Make release.nix more readable 2024-11-20 20:13:44 -05:00
Michal Sojka
4962fecb22 release.nix: Add examples 2024-11-20 20:13:44 -05:00
Michal Sojka
ccae44e675 release.nix: Don't build foxy in CI 2024-11-20 20:13:44 -05:00
Michal Sojka
bf61ea9af7 release.nix: Add top-level packages like colcon
This allows running CI on the complete content of this repository.
2024-11-20 20:13:44 -05:00
Michal Sojka
2dd34bfa6f release.nix: Remove few top-level attributes preventing evaluation in Hydra
While doing that, refactor the code to have simpler expressions.
2024-11-20 20:13:44 -05:00
Michal Sojka
ce30af70c7 flake.nix: Add "checks" flake output based on release.nix
To make "nix flake check" and similar tools work, we need to allow
setting the system attribute in release.nix explicitly. Without this,
flake jobs in Hydra complain about:

    error: attribute 'currentSystem' missing' in restricted evaluation mode.
2024-11-20 20:13:44 -05:00
Michal Sojka
894271ba89 release.nix: Don't try to access absolute paths
This fixes the following error reported by Hydra:

    error: access to absolute path '/lib' is forbidden in restricted mode
2024-11-20 20:13:44 -05:00
Michal Sojka
a31e29ac73 release.nix: Use lockedNixpkgs as in default.nix
This ensures that CI using release.nix builds the same code as will be
used by users.

This simply copies the code from default.nix.
2024-11-20 20:13:44 -05:00
Ben Wolsieffer
6572a68df3 Add GitHub action. 2019-12-07 17:07:25 -05:00
Ben Wolsieffer
d59aab21f6 Refactor functions into lib attrset. 2019-12-06 17:19:28 -05:00
Ben Wolsieffer
428418ebb5 Remove uncessary attrs from release. 2019-04-06 12:41:20 -04:00
Ben Wolsieffer
dcf98d1cb0 Add release.nix 2019-04-06 01:59:07 -04:00