-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make TARGETS=ros2 subpackages Adding github workflow for subpackages renaming rpm/ros2/rolling/ros2_rolling.spec -> rpm/ros2/ros2_rolling.spec Signed-off-by: Yariv Rachmani <[email protected]>
- Loading branch information
Showing
10 changed files
with
71 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build Subpackages | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
build-subpackages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y make | ||
|
||
- name: Run make for each subsystem | ||
run: | | ||
for dir in subsystems/*; do | ||
if [ -d "$dir" ]; then | ||
subsystem=$(basename "$dir") | ||
echo "Running make for $subsystem..." | ||
make TARGETS=$subsystem subpackages | ||
if [ $? -ne 0 ]; then | ||
echo "❌ Make failed for $subsystem" >&2 | ||
exit 1 | ||
fi | ||
fi | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,47 +2,42 @@ | |
|
||
# rootfs macros for QM ROS2 Rolling | ||
%global rootfs_qm %{_prefix}/lib/qm/rootfs/ | ||
%global ros2_container %{rootfs_qm}/%{_sysconfdir}/containers/systemd/ | ||
|
||
Name: qm-ros2-rolling | ||
Version: 0.6.9 | ||
Version: 0 | ||
Release: 1%{?dist} | ||
Summary: Subpackage container for quadlet container to ROS2 Rolling environment | ||
License: GPL-2.0-only | ||
URL: https://github.com/containers/qm | ||
Source0: %{url}/archive/v%{version}.tar.gz | ||
BuildArch: noarch | ||
Source0: %{url}/archive/qm-ros2-%{version}.tar.gz | ||
|
||
BuildRequires: make | ||
BuildRequires: git-core | ||
BuildRequires: pkgconfig(systemd) | ||
BuildArch: noarch | ||
Requires: qm = %{version}-%{release} | ||
Requires: podman | ||
|
||
%description | ||
This subpackage provides a containerized ROS2 Rolling environment within the | ||
Quality Management (QM) system. It enables ROS2 applications to run in isolated | ||
containers managed by Podman and systemd within the QM environment. | ||
|
||
%prep | ||
%autosetup -Sgit -n qm-%{version} | ||
%autosetup -Sgit -n qm-ros2-%{version} | ||
|
||
%build | ||
# No special build requirements for ROS2 Rolling container | ||
%{__make} all | ||
|
||
%install | ||
# Create the necessary directory structure | ||
mkdir -p %{buildroot}%{ros2_container} | ||
install -d %{buildroot}%{rootfs_qm}%{_sysconfdir}/containers/systemd | ||
|
||
# Install the ROS2 Rolling container file | ||
install -m 644 %{_builddir}/qm-ros2-%{version}/subsystems/ros2/etc/containers/systemd/ros2-rolling.container %{buildroot}%{rootfs_qm}%{_sysconfdir}/containers/systemd/ros2-rolling.container | ||
|
||
install -m 644 subsystems/ros2/etc/containers/systemd/ros2-rolling.container %{buildroot}%{ros2_container} | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{ros2_container}ros2-rolling.container | ||
%doc README.md SECURITY.md | ||
%{rootfs_qm}%{_sysconfdir}/containers/systemd/ros2-rolling.container | ||
|
||
|
||
%changelog | ||
* Fri Jul 21 2023 RH Container Bot <[email protected]> - 0.6.8-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters