From 4372306dbc51a66ec91a9bca97e0ba5893479fcb Mon Sep 17 00:00:00 2001 From: Michael Ripperger Date: Tue, 24 Oct 2023 10:41:19 -0500 Subject: [PATCH] Updated CI to be based on tesseract_planning CI docker image --- .github/workflows/dependencies.repos | 5 +++++ .github/workflows/ubuntu.yml | 23 ++++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/dependencies.repos diff --git a/.github/workflows/dependencies.repos b/.github/workflows/dependencies.repos new file mode 100644 index 00000000..e00414c1 --- /dev/null +++ b/.github/workflows/dependencies.repos @@ -0,0 +1,5 @@ +repositories: + tesseract_qt: + type: git + url: https://github.com/tesseract-robotics/tesseract_qt.git + version: 0.20.0 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 364a5d0d..b1762623 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -19,12 +19,19 @@ jobs: strategy: fail-fast: false matrix: - distro: [foxy, humble, rolling] + include: + - os: focal + distro: foxy + - os: jammy + distro: humble + - os: jammy + distro: rolling env: CCACHE_DIR: ${{ github.workspace }}/${{ matrix.distro }}/.ccache REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} PUSH_DOCKER_IMAGE: ${{ github.ref == 'refs/heads/master' || github.event_name == 'release' }} + TESSERACT_VERSION: 0.20 steps: - uses: actions/checkout@v1 @@ -84,16 +91,18 @@ jobs: - uses: 'ros-industrial/industrial_ci@master' env: - ROS_DISTRO: ${{ matrix.distro }} + DOCKER_IMAGE: ghcr.io/tesseract-robotics/tesseract_planning:${{ matrix.os }}-${{ env.TESSERACT_VERSION }} + BEFORE_INIT: 'apt install ros-${{ matrix.distro }}-ros-base' + BEFORE_INIT_EMBED: 'source /opt/ros/${{ matrix.distro }}/setup.bash' ROS_REPO: main - UPSTREAM_WORKSPACE: 'dependencies.repos' - ROSDEP_SKIP_KEYS: "catkin taskflow fcl gz-common5 gz-math7 gz-rendering7 qt_advanced_docking" + UPSTREAM_WORKSPACE: '.github/workflows/dependencies.repos' + ROSDEP_SKIP_KEYS: 'catkin taskflow fcl gz-common5 gz-math7 gz-rendering7 qt_advanced_docking' PARALLEL_TESTS: false NOT_TEST_BUILD: true PREFIX: ${{ github.repository }}_ - UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release -DBUILD_RENDERING=OFF -DBUILD_STUDIO=OFF" - TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}" - BEFORE_RUN_TARGET_TEST_EMBED: "source /root/target_ws/install/local_setup.bash" + UPSTREAM_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Release -DBUILD_RENDERING=OFF -DBUILD_STUDIO=OFF' + TARGET_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}' + BEFORE_RUN_TARGET_TEST_EMBED: 'source /root/target_ws/install/local_setup.bash' AFTER_SCRIPT: 'rm -r $BASEDIR/${PREFIX}upstream_ws/build $BASEDIR/${PREFIX}target_ws/build' DOCKER_COMMIT: ${{ steps.meta.outputs.tags }}