Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses ros-action-ci for main workflow. #40

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependencies.repos
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repositories:
type: git
url: https://github.com/ToyotaResearchInstitute/ament_cmake_doxygen
version: main
pybind11:
maliput:
type: git
url: https://github.com/RobotLocomotion/pybind11.git
version: c39ede1eedd4f39aa167d7b30b53ae45967c39b7
url: https://github.com/maliput/maliput
version: main
51 changes: 8 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: gcc

on:
push:
pull_request:
branches:
- main
Expand All @@ -9,7 +10,6 @@ on:
env:
PACKAGE_NAME: maliput_object
ROS_DISTRO: foxy
ROS_WS: maliput_ws

jobs:
compile_and_test:
Expand All @@ -18,46 +18,11 @@ jobs:
container:
image: ubuntu:20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ros-tooling/setup-ros@v0.3
- uses: ros-tooling/action-ros-ci@v0.2
id: action_ros_ci_step
with:
path: ${{ env.ROS_WS }}/src/${{ env.PACKAGE_NAME }}
# use setup-ros action to get vcs, rosdep, and colcon
- uses: ros-tooling/setup-ros@0.2.1
- name: vcs import
shell: bash
working-directory: ${{ env.ROS_WS }}
run: vcs import src < src/${PACKAGE_NAME}/.github/dependencies.repos
# clone private dependencies
- uses: actions/checkout@v2
with:
repository: ToyotaResearchInstitute/maliput
fetch-depth: 0
path: ${{ env.ROS_WS }}/src/maliput
token: ${{ secrets.MALIPUT_TOKEN }}
- name: check if dependencies have a matching branch
shell: bash
working-directory: ${{ env.ROS_WS }}/src
run: ./${PACKAGE_NAME}/.github/try_vcs_checkout ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} .
- run: colcon graph
shell: bash
working-directory: ${{ env.ROS_WS }}
- name: rosdep install
shell: bash
working-directory: ${{ env.ROS_WS }}
run: |
rosdep update
rosdep install -i -y --rosdistro ${ROS_DISTRO} --skip-keys "pybind11" --from-paths src
- name: colcon build
shell: bash
working-directory: ${{ env.ROS_WS }}
run: |
. /opt/ros/${ROS_DISTRO}/setup.bash;
colcon build --packages-up-to ${PACKAGE_NAME} \
--event-handlers=console_direct+
- name: colcon test
shell: bash
working-directory: ${{ env.ROS_WS }}
run: |
. /opt/ros/${ROS_DISTRO}/setup.bash;
colcon test --packages-select ${PACKAGE_NAME} --event-handlers=console_direct+;
colcon test-result --verbose;
package-name: ${{ env.PACKAGE_NAME }}
target-ros2-distro: ${{ env.ROS_DISTRO }}
vcs-repo-file-url: ${GITHUB_WORKSPACE}/.github/dependencies.repos
11 changes: 2 additions & 9 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
CXX: clang++-8
LDFLAGS: -fuse-ld=lld-8
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: ${{ env.ROS_WS }}/src/${{ env.PACKAGE_NAME }}
# use setup-ros action to get vcs, rosdep, and colcon
- uses: ros-tooling/setup-ros@0.2.1
- uses: ros-tooling/setup-ros@v0.3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: clang 8 install
Expand All @@ -49,13 +49,6 @@ jobs:
shell: bash
working-directory: ${{ env.ROS_WS }}
run: vcs import src < src/${PACKAGE_NAME}/.github/dependencies.repos
# clone private dependencies
- uses: actions/checkout@v2
with:
repository: ToyotaResearchInstitute/maliput
fetch-depth: 0
path: ${{ env.ROS_WS }}/src/maliput
token: ${{ secrets.MALIPUT_TOKEN }}
- name: check if dependencies have a matching branch
shell: bash
working-directory: ${{ env.ROS_WS }}/src
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/scan_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
CXX: clang++-8
LDFLAGS: -fuse-ld=lld-8
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: ${{ env.ROS_WS }}/src/${{ env.PACKAGE_NAME }}
# use setup-ros action to get vcs, rosdep, and colcon
- uses: ros-tooling/setup-ros@0.2.1
- uses: ros-tooling/setup-ros@v0.3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: clang 8 install
Expand All @@ -36,13 +36,6 @@ jobs:
shell: bash
working-directory: ${{ env.ROS_WS }}
run: vcs import src < src/${PACKAGE_NAME}/.github/dependencies.repos
# clone private dependencies
- uses: actions/checkout@v2
with:
repository: ToyotaResearchInstitute/maliput
fetch-depth: 0
path: ${{ env.ROS_WS }}/src/maliput
token: ${{ secrets.MALIPUT_TOKEN }}
- name: check if dependencies have a matching branch
shell: bash
working-directory: ${{ env.ROS_WS }}/src
Expand Down