-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build tests for different ROS versions (#24)
* Add github actions This commit adds a github actions to verify builds for ROS Noetic and ROS Melodic * Run nightly builds everyday at 18:30 UTC This commit runs nightly builds everyday at 18:30 UTC * Use standard ros containers
- Loading branch information
1 parent
65877e3
commit 6074cda
Showing
2 changed files
with
54 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,52 @@ | ||
name: Build Test | ||
on: | ||
schedule: | ||
- cron: '30 18 * * *' | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {rosdistro: 'melodic', container: 'ros:melodic-ros-base-bionic'} | ||
- {rosdistro: 'noetic', container: 'ros:noetic-ros-base-focal'} | ||
container: ${{ matrix.config.container }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install catkin-tools on melodic | ||
if: ${{ matrix.config.container == 'ros:melodic-ros-base-bionic' }} | ||
run: | | ||
apt update && apt install -y python3-wstool python-catkin-tools | ||
- name: Install catkin-tools on Noetic | ||
if: ${{ matrix.config.container == 'ros:noetic-ros-base-focal' }} | ||
run: | | ||
apt update && apt install -y python3-pip | ||
pip3 install osrf-pycommon | ||
apt update && apt install -y python3-wstool python3-catkin-tools | ||
- name: release_build_test | ||
working-directory: | ||
run: | | ||
# apt update && apt install -y python3-wstool python3-catkin-tools | ||
mkdir -p $HOME/catkin_ws/src; | ||
cd $HOME/catkin_ws | ||
catkin init | ||
catkin config --extend "/opt/ros/${{matrix.config.rosdistro}}" | ||
catkin config --merge-devel | ||
cd $HOME/catkin_ws/src | ||
ln -s $GITHUB_WORKSPACE | ||
cd $HOME/catkin_ws | ||
rosdep update | ||
rosdep install --from-paths src --ignore-src -y --rosdistro ${{matrix.config.rosdistro}} | ||
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release -DCATKIN_ENABLE_TESTING=False | ||
catkin build -j$(nproc) -l$(nproc) versavis |
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