Skip to content

Commit

Permalink
Use system taskflow for Noble
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Jul 18, 2024
1 parent d224550 commit eda955e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 17 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
TARGET_CMAKE_ARGS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DTESSERACT_ENABLE_CODE_COVERAGE=ON -DTESSERACT_WARNINGS_AS_ERRORS=OFF"
container:
image: ghcr.io/tesseract-robotics/trajopt:jammy-master
image: ghcr.io/tesseract-robotics/trajopt:noble-master
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.job_type }}/.ccache"
DEBIAN_FRONTEND: noninteractive
Expand All @@ -45,9 +45,7 @@ jobs:
run: |
apt update
apt upgrade -y
apt install -y wget software-properties-common
add-apt-repository ppa:levi-armstrong/tesseract-robotics
apt install -y clang-tidy libompl-dev taskflow
apt install -y wget clang-tidy libompl-dev
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ jobs:
run: |
apt update
apt upgrade -y
apt install -y wget software-properties-common
apt install -y wget libompl-dev
- name: Install Depends (non-noble)
if: ${{ matrix.distro != 'noble' }}
shell: bash
run: |
apt install -y software-properties-common
add-apt-repository ppa:levi-armstrong/tesseract-robotics
apt install -y libompl-dev taskflow
apt install -y taskflow
- name: Install Depends (noble)
if: ${{ matrix.distro == 'noble' }}
shell: bash
run: |
apt install -y libtaskflow-cpp-dev
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v8
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,19 @@ jobs:
run: |
apt update
apt upgrade -y
apt install -y wget software-properties-common
apt install -y wget libompl-dev
- name: Install Depends (non-noble)
if: ${{ matrix.distro != 'noble' }}
shell: bash
run: |
apt install -y software-properties-common
add-apt-repository ppa:levi-armstrong/tesseract-robotics
apt install -y libompl-dev taskflow
apt install -y taskflow
- name: Install Depends (noble)
if: ${{ matrix.distro == 'noble' }}
shell: bash
run: |
apt install -y libtaskflow-cpp-dev
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v8
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches:
- master
- 'dev**'
- "dev**"
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/unstable.yml'
- '**.repos'
- "tesseract**"
- ".github/workflows/unstable.yml"
- "**.repos"
schedule:
- cron: '0 5 * * *'
- cron: "0 5 * * *"
release:
types:
- released
Expand Down Expand Up @@ -41,9 +41,19 @@ jobs:
run: |
apt update
apt upgrade -y
apt install -y wget software-properties-common
apt install -y wget libompl-dev
- name: Install Depends (non-noble)
if: ${{ matrix.distro != 'noble' }}
shell: bash
run: |
apt install -y software-properties-common
add-apt-repository ppa:levi-armstrong/tesseract-robotics
apt install -y libompl-dev taskflow
apt install -y taskflow
- name: Install Depends (noble)
if: ${{ matrix.distro == 'noble' }}
shell: bash
run: |
apt install -y libtaskflow-cpp-dev
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v8
Expand Down
10 changes: 8 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG TAG
FROM ghcr.io/tesseract-robotics/trajopt:${TAG}
ENV E_TAG=$TAG

SHELL ["/bin/bash", "-c"]

Expand All @@ -8,16 +9,21 @@ ENV DEBIAN_FRONTEND noninteractive
USER root

# Install the dependency repositories
RUN apt install -y --no-install-recommends software-properties-common \
RUN if [[ $(lsb_release -cs) != noble ]] ; then \
apt install -y --no-install-recommends software-properties-common \
&& add-apt-repository -y ppa:levi-armstrong/tesseract-robotics \
&& apt update \
&& apt install -y libompl-dev taskflow
&& apt install -y libompl-dev taskflow \
; else \
apt install -y libompl-dev libtaskflow-cpp-dev \
; fi

# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
ARG WORKSPACE_DIR=/opt/tesseract_planning
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_planning \
cd ${WORKSPACE_DIR} \
&& vcs import src < src/tesseract_planning/dependencies.repos --shallow \
&& rosdep update \
&& rosdep install \
--from-paths ${WORKSPACE_DIR}/src \
-iry
Expand Down

0 comments on commit eda955e

Please sign in to comment.