Allow substituting launch args in camera launch file (#757) #1186
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DepthAI ROS CI/CD | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - humble | |
| - galactic | |
| - foxy | |
| - iron | |
| - jazzy | |
| - kilted | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - main | |
| - humble | |
| - galactic | |
| - foxy | |
| - iron | |
| - jazzy | |
| - kilted | |
| env: | |
| ROS_DISTRO: kilted | |
| jobs: | |
| clang-format-lint: | |
| name: ament_clang_format | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:noble | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v3.3.0 | |
| - uses: ros-tooling/setup-ros@0.7.15 | |
| with: | |
| required-ros-distributions: ${{ env.ROS_DISTRO }} | |
| - uses: ros-tooling/action-ros2-lint@0.1.3 | |
| with: | |
| distribution: ${{ env.ROS_DISTRO }} | |
| linter: clang_format | |
| arguments: --config ./.clang-format | |
| package-name: | | |
| depthai_bridge | |
| depthai_examples | |
| depthai_ros_msgs | |
| depthai_ros_driver | |
| depthai_ros | |
| linting: | |
| name: ament_${{ matrix.linter }} | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:noble | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| linter: [xmllint, pep257, lint_cmake] | |
| steps: | |
| - uses: actions/checkout@v3.3.0 | |
| - uses: ros-tooling/setup-ros@0.7.15 | |
| with: | |
| required-ros-distributions: ${{ env.ROS_DISTRO }} | |
| - uses: ros-tooling/action-ros2-lint@0.1.3 | |
| with: | |
| distribution: ${{ env.ROS_DISTRO }} | |
| linter: ${{ matrix.linter }} | |
| package-name: | | |
| depthai_bridge | |
| depthai_examples | |
| depthai_ros_msgs | |
| depthai_ros | |
| docker-build-amd: | |
| name: Build and Upload to Docker Hub | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| env: | |
| PUSH: ${{ (github.event_name != 'pull_request') && (github.repository == 'luxonis/depthai-ros') && startsWith(github.ref, 'refs/tags/v') }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v1 | |
| if: env.PUSH == 'true' | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USER }} | |
| password: ${{ secrets.DOCKERHUB_PASS }} | |
| - name: Get Version | |
| if: env.PUSH == 'true' | |
| id: vars | |
| run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} | |
| - name: Build | |
| uses: docker/build-push-action@v3 | |
| if: env.PUSH == 'false' | |
| with: | |
| build-args: | | |
| ROS_DISTRO=${{ env.ROS_DISTRO }} | |
| USE_RVIZ=1 | |
| BUILD_SEQUENTIAL=1 | |
| no-cache: true | |
| - name: Build and Push | |
| uses: docker/build-push-action@v3 | |
| if: env.PUSH == 'true' | |
| with: | |
| build-args: | | |
| ROS_DISTRO=${{ env.ROS_DISTRO }} | |
| USE_RVIZ=1 | |
| push: ${{ env.PUSH }} | |
| no-cache: true | |
| tags: | | |
| luxonis/depthai-ros:${{ steps.vars.outputs.short_ref }} | |
| luxonis/depthai-ros:${{ env.ROS_DISTRO }}-latest | |
| docker-build-arm: | |
| name: Build and Upload to Docker Hub (ARM-64) | |
| runs-on: ubuntu-24.04-arm | |
| strategy: | |
| fail-fast: false | |
| env: | |
| PUSH: ${{ (github.event_name != 'pull_request') && (github.repository == 'luxonis/depthai-ros') && startsWith(github.ref, 'refs/tags/v') }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v1 | |
| if: env.PUSH == 'true' | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USER }} | |
| password: ${{ secrets.DOCKERHUB_PASS }} | |
| - name: Get Version | |
| if: env.PUSH == 'true' | |
| id: vars | |
| run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} | |
| - name: Build | |
| uses: docker/build-push-action@v3 | |
| if: env.PUSH == 'false' | |
| with: | |
| build-args: | | |
| ROS_DISTRO=${{ env.ROS_DISTRO }} | |
| USE_RVIZ=1 | |
| BUILD_SEQUENTIAL=1 | |
| no-cache: true | |
| - name: Build and Push | |
| uses: docker/build-push-action@v3 | |
| if: env.PUSH == 'true' | |
| with: | |
| build-args: | | |
| ROS_DISTRO=${{ env.ROS_DISTRO }} | |
| USE_RVIZ=1 | |
| push: ${{ env.PUSH }} | |
| no-cache: true | |
| tags: | | |
| luxonis/depthai-ros:${{ steps.vars.outputs.short_ref }}-arm64 | |
| luxonis/depthai-ros:${{ env.ROS_DISTRO }}-arm64-latest |