From 25e9f7c956ce05fc25dfb6459674f92334cdb4d5 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 16 Dec 2024 00:57:00 +0100 Subject: [PATCH] bloom packages --- .github/workflows/bloom.yml | 79 +++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/bloom.yml diff --git a/.github/workflows/bloom.yml b/.github/workflows/bloom.yml new file mode 100644 index 00000000..6dc7b171 --- /dev/null +++ b/.github/workflows/bloom.yml @@ -0,0 +1,79 @@ +name: bloom + +on: [push, pull_request] + +jobs: + build: + name: "${{ matrix.distro }} (${{ matrix.ros_distribution }})" + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + include: + - distro: ubuntu + version: 22.04 + ros_distribution: humble + + - distro: ubuntu + version: 24.04 + ros_distribution: jazzy + + - distro: almalinux + version: 8 + ros_distribution: humble + + - distro: almalinux + version: 9 + ros_distribution: jazzy + + container: + image: ${{ matrix.distro }}:${{ matrix.version }} + + env: + DEBIAN_FRONTEND: noninteractive + + steps: + # - name: install core dependencies + # run: | + # apt update + # apt install -y --no-install-recommends git ca-certificates + + # act workaround + # - if: ${{ matrix.distro == 'ubuntu' }} + # run: | + # apt update + # apt -y install nodejs + # - if: ${{ matrix.distro == 'almalinux'}} + # run: | + # dnf -y install nodejs + + - uses: actions/checkout@v4 + + - uses: ros-tooling/setup-ros@v0.7 + + - name: install build tool dependencies + if: ${{ matrix.distro == 'ubuntu' }} + run: | + apt install -y --no-install-recommends devscripts equivs python3-bloom + + - name: bloom (ubuntu) + if: ${{ matrix.distro == 'ubuntu' }} + run: | + rosdep update + bloom-generate rosdebian --ros-distro ${{ matrix.ros_distribution }} + mk-build-deps + apt install -y --no-install-recommends ./ros-${{ matrix.ros_distribution }}-camera-ros-build-deps_*_all.deb + dpkg-buildpackage -b + apt install -y --no-install-recommends ../ros-${{ matrix.ros_distribution }}-camera-ros_*.deb ../ros-${{ matrix.ros_distribution }}-camera-ros-dbgsym_*.ddeb + + - name: bloom (almalinux) + if: ${{ matrix.distro == 'almalinux'}} + run: | + rosdep update + bloom-generate rosrpm --ros-distro ${{ matrix.ros_distribution }} + dnf builddep rpm/template.spec + . /opt/ros/humble/setup.bash # ??? + rpmbuild -bb --build-in-place rpm/template.spec + # apt install -y --no-install-recommends ../ros-${{ matrix.ros_distribution }}-camera-ros_*.deb ../ros-${{ matrix.ros_distribution }}-camera-ros-dbgsym_*.ddeb