-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c137f5
commit 716a5ec
Showing
1 changed file
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: ROS Catkin Build | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ros:noetic-ros-base-focal | ||
steps: | ||
# checkout the code | ||
- uses: actions/checkout@v4 | ||
path: src/spark_dsg | ||
# install necessary dependences | ||
- name: Dependencies | ||
run: | | ||
# sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | ||
sudo apt install -y python3-wstool python3-catkin-tools python3-vcstool | ||
rosdep install --from-paths src --ignore--src -r -y | ||
# configure repo | ||
- name: Configure | ||
run: | | ||
catkin init | ||
catkin config \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DSPARK_DSG_BUILD_TESTS=ON \ | ||
-DSPARK_DSG_BUILD_PYTHON=ON \ | ||
-DSPARK_DSG_BUILD_EXAMPLES=ON | ||
# build repo | ||
- name: Build | ||
run: catkin build spark_dsg | ||
# run unit tests | ||
- name: Test | ||
run: catkin test spark_dsg |