Skip to content

CI: Test with Ensenso SDK 3.6.1606 #309

CI: Test with Ensenso SDK 3.6.1606

CI: Test with Ensenso SDK 3.6.1606 #309

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
# Use skip-duplicate-actions to prevent duplicate workflow runs.
# This configuration sets the should_skip flag for a pull_request workflow run if there is a completed or ongoing
# workflow run on the exact same content (same tree hash).
skip_duplicate_workflow_check:
runs-on: ubuntu-latest
name: "skip-duplicate-workflow-check"
outputs:
should_skip: ${{steps.skip_check.outputs.should_skip}}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
do_not_skip: '["push"]'
# Any *_CHECK argument causes industrial_ci to only perform the given check.
code_check:
needs: skip_duplicate_workflow_check
if: ${{needs.skip_duplicate_workflow_check.outputs.should_skip != 'true'}}
runs-on: ubuntu-latest
name: "code-check"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Industrial CI - C++ ClangFormat
uses: 'ros-industrial/industrial_ci@master'
env:
CLANG_FORMAT_CHECK: file
ROS_DISTRO: noetic
- name: Industrial CI - Python Black
uses: 'ros-industrial/industrial_ci@master'
env:
BLACK_CHECK: true
ROS_DISTRO: noetic
build_and_test:
needs: skip_duplicate_workflow_check
if: ${{needs.skip_duplicate_workflow_check.outputs.should_skip != 'true'}}
runs-on: ${{matrix.os}}
name: "${{matrix.os}}-ros${{matrix.ros_version}}-${{matrix.ros_distro}}-sdk-${{matrix.ensenso_sdk_version}}"
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
ros_distro: [humble]
ros_version: [2]
ensenso_sdk_version: [3.6.1606, 3.5.1419, 3.4.743]
include:
# Ubuntu 20.04 - foxy
- os: ubuntu-20.04
ros_distro: foxy
ros_version: 2
ensenso_sdk_version: 3.6.1606
- os: ubuntu-20.04
ros_distro: foxy
ros_version: 2
ensenso_sdk_version: 3.5.1419
- os: ubuntu-20.04
ros_distro: foxy
ros_version: 2
ensenso_sdk_version: 3.4.743
# Ubuntu 20.04 - noetic
- os: ubuntu-20.04
ros_distro: noetic
ros_version: 1
ensenso_sdk_version: 3.6.1606
- os: ubuntu-20.04
ros_distro: noetic
ros_version: 1
ensenso_sdk_version: 3.5.1419
- os: ubuntu-20.04
ros_distro: noetic
ros_version: 1
ensenso_sdk_version: 3.4.743
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare repo for ROS2 build
if: ${{ matrix.ros_version == '2' }}
run: ./.github/scripts/prepare_ros2_build.sh
shell: bash
env:
ROS_VERSION: ${{matrix.ros_version}}
ROS_DISTRO: ${{matrix.ros_distro}}
- name: Industrial CI - Build and Test
uses: 'ros-industrial/industrial_ci@master'
env:
AFTER_INSTALL_TARGET_DEPENDENCIES: "./.github/scripts/install_external_dependencies.sh"
CATKIN_LINT: true
CATKIN_LINT_ARGS: "--resolve-env"
DOCKER_RUN_OPTS: "-e ENSENSO_INSTALL=/opt/ensenso -e ENSENSO_SDK_VERSION=${{matrix.ensenso_sdk_version}}"
ROS_DISTRO: ${{matrix.ros_distro}}
ROS_PYTHON_VERSION: 3