From e952bf85c21e7a39bcd9ddfad8cf57f465dcad50 Mon Sep 17 00:00:00 2001 From: Yadunund Date: Mon, 25 Mar 2024 15:08:47 +0800 Subject: [PATCH] Add tmp build for noble job Signed-off-by: Yadunund --- .github/workflows/build.yaml | 2 +- .github/workflows/tmp_build_noble.yaml | 36 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tmp_build_noble.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 07c90a86..2ca84342 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - docker_image: ['ros:iron-ros-base', 'ros:rolling-ros-base'] + docker_image: ['ros:iron-ros-base'] container: image: ${{ matrix.docker_image }} timeout-minutes: 30 diff --git a/.github/workflows/tmp_build_noble.yaml b/.github/workflows/tmp_build_noble.yaml new file mode 100644 index 00000000..4b9a5cbb --- /dev/null +++ b/.github/workflows/tmp_build_noble.yaml @@ -0,0 +1,36 @@ +name: tmp_build +on: + pull_request: + push: + branches: [ rolling ] + workflow_dispatch: +defaults: + run: + shell: bash +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + docker_image: ['ubuntu:noble-20240225'] + container: + image: ${{ matrix.docker_image }} + timeout-minutes: 30 + steps: + - name: Setup rolling + run: | + sudo apt update && sudo apt install curl -y + sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null + sudo apt update && sudo apt install ros-dev-tools + sudo apt install ros-rolling-ros-base + - uses: actions/checkout@v2 + - name: rosdep + run: | + sudo rosdep init + rosdep update + rosdep install --from-paths . --rosdistro rolling -yir + - name: build + run: | + source /opt/ros/rolling/setup.bash + colcon build