From 1efe10c9ddb7bebf3e6df12f366200c989dfa2ec Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 10 Sep 2022 15:26:34 +0300 Subject: [PATCH] Simplify script for testing native Noetic build --- .github/workflows/build.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29b305d3..88a97f1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,22 @@ jobs: # docker run --rm -v $(pwd):/root/catkin_ws/src/clover ros:melodic-ros-base /root/catkin_ws/src/clover/builder/standalone-install.sh noetic: runs-on: ubuntu-latest + container: ros:noetic-ros-base + defaults: + run: + working-directory: catkin_ws + shell: bash steps: - - uses: actions/checkout@v2 - - name: Native Noetic build - run: | - docker run --rm -v $(pwd):/root/catkin_ws/src/clover ros:noetic-ros-base /root/catkin_ws/src/clover/builder/standalone-install.sh + - uses: actions/checkout@v2 + with: + path: catkin_ws/src/clover + - name: Install pip + run: apt-get update && apt-get -y install python3-pip + - name: Install dependencies + run: rosdep update && rosdep install --from-paths src --ignore-src -y + - name: catkin_make + run: source /opt/ros/$ROS_DISTRO/setup.bash && catkin_make + - name: Run tests + run: source devel/setup.bash && catkin_make run_tests && catkin_test_results + - name: Install + run: source devel/setup.bash && catkin_make install