Skip to content

Commit

Permalink
Readd vortex msgs clone
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstrom authored Jul 15, 2024
1 parent 013d839 commit 3e1ea89
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-workspace.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Build ROS 2 Package

on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -15,32 +13,32 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup ROS 2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble

- name: Create workspace
run: |
mkdir -p ~/ros2_ws/src
cp -R $GITHUB_WORKSPACE ~/ros2_ws/src/
- name: Clone vortex-msgs
run: |
cd ~/ros2_ws/src
git clone https://github.com/vortexntnu/vortex-msgs.git
- name: Install dependencies
run: |
cd ~/ros2_ws
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build with colcon
- name: Build
run: |
cd ~/ros2_ws
. /opt/ros/humble/setup.sh
colcon build --symlink-install
- name: Run tests
run: |
cd ~/ros2_ws
. /opt/ros/humble/setup.sh
. install/setup.sh
colcon test
colcon test-result --verbose

0 comments on commit 3e1ea89

Please sign in to comment.