From 44caee8f384928fb897e0f46badd7aae0239d6c3 Mon Sep 17 00:00:00 2001 From: dubajstan Date: Wed, 9 Sep 2026 17:38:30 +0200 Subject: [PATCH 1/3] added CI --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bd7f916 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI-scorpio_interfaces + +on: + workflow_dispatch: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build_and_test: + runs-on: ubuntu-22.04 + strategy: + matrix: + ros-distro: [ humble ] + + container: + image: ros:${{ matrix.ros-distro }}-ros-base + + env: + ROS_DISTRO: ${{ matrix.ros-distro }} + TZ: 'Europe/Warsaw' + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + path: src/scorpio_interfaces + + - name: Install dependencies + shell: bash + run: | + apt-get update && apt-get install -y --no-install-recommends python3-colcon-common-extensions + rosdep update --rosdistro ${{ matrix.ros-distro }} + rosdep install -i --from-paths src --rosdistro ${{ matrix.ros-distro }} -y + + - name: Build + shell: bash + run: | + . /opt/ros/${{ matrix.ros-distro }}/setup.bash + colcon build --packages-select scorpio_interfaces --event-handlers console_cohesion+ From 3f10174ab0c8ff3ca39e78ca34ae6a3dc0b3a24e Mon Sep 17 00:00:00 2001 From: dubajstan Date: Wed, 9 Sep 2026 18:05:48 +0200 Subject: [PATCH 2/3] small refactor --- .github/workflows/ci.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd7f916..58ff535 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,9 +3,11 @@ name: CI-scorpio_interfaces on: workflow_dispatch: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,17 +15,20 @@ concurrency: jobs: build_and_test: + name: Build and Test runs-on: ubuntu-22.04 + strategy: matrix: - ros-distro: [ humble ] - + ros-distro: + - humble + container: image: ros:${{ matrix.ros-distro }}-ros-base env: ROS_DISTRO: ${{ matrix.ros-distro }} - TZ: 'Europe/Warsaw' + TZ: Europe/Warsaw steps: - name: Checkout repo @@ -34,12 +39,17 @@ jobs: - name: Install dependencies shell: bash run: | - apt-get update && apt-get install -y --no-install-recommends python3-colcon-common-extensions + apt-get update && apt-get install -y --no-install-recommends \ + python3-colcon-common-extensions rosdep update --rosdistro ${{ matrix.ros-distro }} - rosdep install -i --from-paths src --rosdistro ${{ matrix.ros-distro }} -y + rosdep install -i --from-paths src \ + --rosdistro ${{ matrix.ros-distro }} \ + -y - name: Build shell: bash run: | . /opt/ros/${{ matrix.ros-distro }}/setup.bash - colcon build --packages-select scorpio_interfaces --event-handlers console_cohesion+ + colcon build \ + --packages-select scorpio_interfaces \ + --event-handlers console_cohesion+ From 93bb421d3195d21470c39b0805d3c12da8550f3f Mon Sep 17 00:00:00 2001 From: dubajstan Date: Sat, 12 Sep 2026 13:02:56 +0200 Subject: [PATCH 3/3] added jazzy, changed ubuntu version to latest --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58ff535..4450a6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,14 @@ concurrency: jobs: build_and_test: - name: Build and Test - runs-on: ubuntu-22.04 + name: Build + runs-on: ubuntu-latest strategy: matrix: ros-distro: - humble + - jazzy container: image: ros:${{ matrix.ros-distro }}-ros-base @@ -52,4 +53,5 @@ jobs: . /opt/ros/${{ matrix.ros-distro }}/setup.bash colcon build \ --packages-select scorpio_interfaces \ + --cmake-args -DCMAKE_BUILD_TYPE=Release \ --event-handlers console_cohesion+