From 61cd35d142ad0acc832df8ba99647b3ae02b16ae Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:18:18 +0200 Subject: [PATCH 1/6] Create ROS CI --- .github/workflows/ros-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ros-ci.yml diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml new file mode 100644 index 0000000..ef99224 --- /dev/null +++ b/.github/workflows/ros-ci.yml @@ -0,0 +1,31 @@ +name: ROS 2 CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checkout repository + - name: Checkout code + uses: actions/checkout@v3 + + # Set up ROS 2 environment and build the workspace using ROS CI Action + - name: ROS 2 CI Action + uses: ros-tooling/action-ros-ci@0.3.15 + with: + # The target ROS 2 distribution + ros-distro: jazzy + # Additional CMake args (optional) + cmake-args: -DCMAKE_BUILD_TYPE=Release + + # Run tests + - name: Run tests + run: colcon test --event-handlers console_cohesion+ From 1a4443377746621d238e9cb5030ecc545033e040 Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:23:56 +0200 Subject: [PATCH 2/6] Update ros-ci.yml From 1383857b78be61d0511955d768373ab323c80b97 Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:27:53 +0200 Subject: [PATCH 3/6] Update ros-ci.yml --- .github/workflows/ros-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index ef99224..e954f90 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -22,7 +22,7 @@ jobs: uses: ros-tooling/action-ros-ci@0.3.15 with: # The target ROS 2 distribution - ros-distro: jazzy + target-ros2-distro: jazzy # Additional CMake args (optional) cmake-args: -DCMAKE_BUILD_TYPE=Release From ba425e0a6b02d60100687b24715aa2ed86d7e19c Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:38:26 +0200 Subject: [PATCH 4/6] Update ros-ci.yml --- .github/workflows/ros-ci.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index e954f90..240f1d5 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -11,21 +11,16 @@ on: jobs: build: runs-on: ubuntu-latest - + container: + image: ubuntu:noble steps: # Checkout repository - - name: Checkout code - uses: actions/checkout@v3 - - # Set up ROS 2 environment and build the workspace using ROS CI Action - - name: ROS 2 CI Action - uses: ros-tooling/action-ros-ci@0.3.15 - with: - # The target ROS 2 distribution - target-ros2-distro: jazzy - # Additional CMake args (optional) - cmake-args: -DCMAKE_BUILD_TYPE=Release - - # Run tests - - name: Run tests - run: colcon test --event-handlers console_cohesion+ + #- name: Checkout code + # uses: actions/checkout@v3 + - uses: ros-tooling/setup-ros@v0.7 + with: + required-ros-distributions: jazzy + - uses: ros-tooling/action-ros-ci@v0.3 + with: + package-name: my_package + target-ros2-distro: jazzy From 860aa4ec01785fc39cbb9b850b5e42856799c4e8 Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:43:00 +0200 Subject: [PATCH 5/6] Update ros-ci.yml --- .github/workflows/ros-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 240f1d5..61a5c55 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -11,8 +11,6 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: ubuntu:noble steps: # Checkout repository #- name: Checkout code @@ -22,5 +20,5 @@ jobs: required-ros-distributions: jazzy - uses: ros-tooling/action-ros-ci@v0.3 with: - package-name: my_package + package-name: apricotka-robot-car target-ros2-distro: jazzy From ca1b9bb59b66ee62f3e831b3e67c2c68f939d696 Mon Sep 17 00:00:00 2001 From: Sergii Aksonov Date: Wed, 23 Oct 2024 22:49:09 +0200 Subject: [PATCH 6/6] Update ros-ci.yml --- .github/workflows/ros-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 61a5c55..5276ba5 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -11,6 +11,8 @@ on: jobs: build: runs-on: ubuntu-latest + container: + image: ubuntu:noble steps: # Checkout repository #- name: Checkout code