-
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.
* initial actions attempt * fix indentation * fix dependencies * use actual package * fix line breaks * add missing header * fix another missing header * set directory and add pointer to github source * add catkin pipeline * fix uses syntax * fix runner spec * try adding update * fix rosdep command * specify distro * force rosdep init and update * remove init * properly extend ros * add required git dep * rename workflows * fix name syntax * add badges --------- Co-authored-by: Nathan Hughes <[email protected]>
- Loading branch information
1 parent
b39bd21
commit 9d81a52
Showing
5 changed files
with
68 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,33 @@ | ||
--- | ||
name: "ROS Noetic: Build and Test" | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: ros:noetic-ros-base-focal | ||
steps: | ||
# checkout the code | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: src/spark_dsg | ||
# install necessary dependences | ||
- name: Dependencies | ||
run: | | ||
apt update && apt install -y python3-wstool python3-catkin-tools python3-vcstool git | ||
rosdep update --rosdistro noetic && rosdep install --rosdistro noetic --from-paths src --ignore-src -r -y | ||
# configure repo | ||
- name: Configure | ||
run: | | ||
catkin init | ||
catkin config --extend /opt/ros/noetic | ||
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 |
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,29 @@ | ||
--- | ||
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml | ||
name: "ubuntu-latest: Build and Test" | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout the code | ||
- uses: actions/checkout@v4 | ||
# setup package dependencies | ||
- name: Dependencies | ||
run: | | ||
sudo apt install libgtest-dev libeigen3-dev nlohmann-json3-dev libzmq3-dev python3-dev | ||
# configure repo | ||
- name: Configure | ||
run: | | ||
cmake -B ${{github.workspace}}/build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DSPARK_DSG_BUILD_TESTS=ON \ | ||
-DSPARK_DSG_BUILD_PYTHON=ON \ | ||
-DSPARK_DSG_BUILD_EXAMPLES=ON | ||
# build repo | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release | ||
# run unit tests | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -C Release |
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