[ur_controllers] Remove Werror from CMakeLists (#1720) #4
Workflow file for this run
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: Reusable industrial_ci workflow | ||
| # original author: Denis Štogl <denis@stoglrobotics.de> | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| ref_for_scheduled_build: | ||
| description: 'Reference on which the repo should be checkout for scheduled build. Usually is this name of a branch or a tag.' | ||
| default: '' | ||
| required: false | ||
| type: string | ||
| upstream_workspace: | ||
| description: 'UPSTREAM_WORKSPACE variable for industrial_ci. Usually path to local .repos file.' | ||
| required: false | ||
| default: '' | ||
| type: string | ||
| ros_distro: | ||
| description: 'ROS_DISTRO variable for industrial_ci' | ||
| required: true | ||
| type: string | ||
| ros_repo: | ||
| description: 'ROS_REPO to run for industrial_ci. Possible values: "main", "testing"' | ||
| default: 'main' | ||
| required: false | ||
| type: string | ||
| before_install_upstream_dependencies: | ||
| description: 'BEFORE_INSTALL_UPSTREAM_DEPENDENCIES variable for industrial_ci' | ||
| default: '' | ||
| required: false | ||
| type: string | ||
| ccache_dir: | ||
| description: 'CCache dir that should be used. Relative to github.workspace' | ||
| default: '.ccache' | ||
| required: false | ||
| type: string | ||
| jobs: | ||
| reusable_ici: | ||
| name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }} | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| DOCKER_RUN_OPTS: '-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net' | ||
| CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }} | ||
| CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }} | ||
| <<<<<<< HEAD | ||
| ======= | ||
| ROSDEP_SKIP_KEYS: ${{ inputs.rosdep_skip_keys }} | ||
| TARGET_CMAKE_ARGS: -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-error=cpp" | ||
| >>>>>>> 2fb2d5a ([ur_controllers] Remove Werror from CMakeLists (#1720)) | ||
| steps: | ||
| - name: Checkout ${{ github.ref_name }} since build is not scheduled | ||
| if: ${{ github.event_name != 'schedule' }} | ||
| uses: actions/checkout@v6 | ||
| - name: Checkout ${{ inputs.ref_for_scheduled_build }} on scheduled build | ||
| if: ${{ github.event_name == 'schedule' }} | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: ${{ inputs.ref_for_scheduled_build }} | ||
| - run: docker network create --subnet=192.168.56.0/24 ursim_net | ||
| if: ${{ !env.ACT }} | ||
| - name: Cache ccache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: ${{ env.CCACHE_DIR }} | ||
| key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | ||
| restore-keys: | | ||
| ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} | ||
| ccache-${{ env.CACHE_PREFIX }} | ||
| - uses: 'ros-industrial/industrial_ci@master' | ||
| env: | ||
| UPSTREAM_WORKSPACE: ${{ inputs.upstream_workspace }} | ||
| ROS_DISTRO: ${{ inputs.ros_distro }} | ||
| ROS_REPO: ${{ inputs.ros_repo }} | ||
| CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON | ||
| ADDITIONAL_DEBS: docker.io netcat-openbsd curl # Needed for integration tests | ||