From 7bcbb2db0dca9b7a0bbb8664a65600c27152cafa Mon Sep 17 00:00:00 2001 From: LucasHaug Date: Mon, 6 Feb 2023 15:11:41 +0100 Subject: [PATCH] Ty to run github action inside container Signed-off-by: LucasHaug --- .github/workflows/main.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9875832a..9b8d8cb9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,18 +5,10 @@ on: [push, pull_request] # on all pushes and PRs jobs: ros1_bridge: runs-on: ubuntu-20.04 + container: + image: ros:rolling-ros1-bridge steps: - uses: actions/checkout@v2 - - name: Workaround for https://github.com/actions/runner-images/issues/675 - run: | - sudo sed -i 's/azure\.//' /etc/apt/sources.list - - uses: ros-tooling/setup-ros@v0.5 - with: - required-ros-distributions: "noetic rolling" - name: Build and test ros1-bridge - uses: ros-tooling/action-ros-ci@v0.2 - with: - package-name: ros1_bridge - target-ros1-distro: noetic - target-ros2-distro: rolling - + run: | + /ros_entrypoint.sh colcon build --allow-overriding ros1_bridge