-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pre-made docker images for CI, use ROS Noetic, Humble and Jazzy (…
…remove Melodic and Foxy) (#63) * Use pre-made docker images for CI, use ROS Noetic, Humble and Jazzy (remove Melodic and Foxy)
- Loading branch information
1 parent
0a1e54e
commit 1629bb7
Showing
5 changed files
with
107 additions
and
133 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 |
---|---|---|
@@ -1,66 +1,48 @@ | ||
name: Build and Test with ROS1 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: "melodic" | ||
container: | ||
image: "osrf/ros:melodic-desktop-full" | ||
env: | ||
ROS_DISTRO: melodic | ||
- name: "noetic" | ||
container: | ||
image: "osrf/ros:noetic-desktop-full" | ||
env: | ||
ROS_DISTRO: noetic | ||
|
||
container: ${{ matrix.config.container }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: src/fixposition_driver | ||
- name: Checkout Deps | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: fixposition/fixposition_gnss_tf | ||
path: src/fixposition_gnss_tf | ||
- name: Set up Deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libeigen3-dev libyaml-cpp-dev libgtest-dev python3-osrf-pycommon python3-catkin-tools | ||
- name: Install Gtest | ||
if: matrix.config.container.image == 'osrf/ros:melodic-desktop-full' | ||
run: | | ||
cd /usr/src/gtest | ||
sudo cmake . | ||
sudo make | ||
sudo make install | ||
- name: Ignore ROS2 node | ||
run: | | ||
touch src/fixposition_driver/fixposition_driver_ros2/CATKIN_IGNORE | ||
touch src/fixposition_driver/fixposition_odometry_converter_ros2/CATKIN_IGNORE | ||
- name: Init Workspace | ||
run: | | ||
catkin init | ||
- name: Build and Test | ||
run: | | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
catkin build fixposition_driver_lib fixposition_driver_ros1 fixposition_odometry_converter_ros1 --force-cmake -DBUILD_TESTING=ON | ||
catkin run_tests | ||
name: Build and Test with ROS1 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: "noetic" | ||
container: | ||
image: "ghcr.io/fixposition/fixposition-sdk:noetic-ci" | ||
|
||
container: ${{ matrix.config.container }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: src/fixposition_driver | ||
- name: Checkout Deps | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: fixposition/fixposition_gnss_tf | ||
path: src/fixposition_gnss_tf | ||
- name: Ignore ROS2 node | ||
run: | | ||
touch src/fixposition_driver/fixposition_driver_ros2/CATKIN_IGNORE | ||
touch src/fixposition_driver/fixposition_odometry_converter_ros2/CATKIN_IGNORE | ||
- name: Init Workspace | ||
run: | | ||
catkin init | ||
- name: Build and Test | ||
run: | | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
catkin build fixposition_driver_lib fixposition_driver_ros1 fixposition_odometry_converter_ros1 --force-cmake -DBUILD_TESTING=ON | ||
catkin run_tests |
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 |
---|---|---|
@@ -1,57 +1,49 @@ | ||
name: Build and Test with ROS2 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: "humble" | ||
container: | ||
image: "osrf/ros:humble-desktop-full" | ||
env: | ||
ROS_DISTRO: humble | ||
- name: "foxy" | ||
container: | ||
image: "osrf/ros:foxy-desktop" | ||
env: | ||
ROS_DISTRO: foxy | ||
|
||
container: ${{ matrix.config.container }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: src/fixposition_driver | ||
- name: Checkout Deps | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: fixposition/fixposition_gnss_tf | ||
path: src/fixposition_gnss_tf | ||
- name: Set up Deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libeigen3-dev libyaml-cpp-dev libgtest-dev python3-osrf-pycommon | ||
- name: Ignore ROS1 node | ||
run: | | ||
touch src/fixposition_driver/fixposition_driver_ros1/COLCON_IGNORE | ||
touch src/fixposition_driver/fixposition_odometry_converter_ros1/COLCON_IGNORE | ||
- name: Build and Test | ||
run: | | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
colcon build --packages-up-to fixposition_driver_ros2 --cmake-args -DBUILD_TESTING=ON | ||
colcon test --packages-up-to fixposition_driver_ros2 | ||
colcon test-result --test-result-base build/fixposition_gnss_tf/ | ||
name: Build and Test with ROS2 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: "humble" | ||
container: | ||
image: "ghcr.io/fixposition/fixposition-sdk:humble-ci" | ||
- name: "jazzy" | ||
container: | ||
image: "ghcr.io/fixposition/fixposition-sdk:jazzy-ci" | ||
|
||
container: ${{ matrix.config.container }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: src/fixposition_driver | ||
- name: Checkout Deps | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: fixposition/fixposition_gnss_tf | ||
path: src/fixposition_gnss_tf | ||
- name: Ignore ROS1 node | ||
run: | | ||
touch src/fixposition_driver/fixposition_driver_ros1/COLCON_IGNORE | ||
touch src/fixposition_driver/fixposition_odometry_converter_ros1/COLCON_IGNORE | ||
- name: Build and Test | ||
run: | | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
colcon build --packages-up-to fixposition_driver_ros2 --cmake-args -DBUILD_TESTING=ON | ||
colcon test --packages-up-to fixposition_driver_ros2 | ||
colcon test-result --test-result-base build/fixposition_gnss_tf/ |
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