Skip to content

Commit

Permalink
only set UNDERLAY if required
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbusch committed Oct 26, 2024
1 parent a85cd03 commit 6519f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitlab-ci/docker-ros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ run-arm64:

.test:
variables:
UNDERLAY: /opt/ws_rmw_zenoh/install
UPSTREAM_WORKSPACE: ${BUILD_CONTEXT}/.repos
TARGET_WORKSPACE: ${BUILD_CONTEXT}
ADDITIONAL_DEBS: git
Expand All @@ -184,6 +183,10 @@ run-arm64:
fi
- git clone --branch master --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci
- test -f ${BUILD_CONTEXT}/.repos || echo "repositories:" > ${BUILD_CONTEXT}/.repos
- |-
if [ "$RMW_IMPLEMENTATION" = "rmw_zenoh_cpp" ]; then
export UNDERLAY="/opt/ws_rmw_zenoh/install"
fi
script: .industrial_ci/gitlab.sh

Test dev-amd64:
Expand Down
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,10 @@ runs:
if: ${{ inputs.enable-industrial-ci == 'true' }}
uses: ros-industrial/industrial_ci@master
env:
UNDERLAY: /opt/ws_rmw_zenoh/install
UPSTREAM_WORKSPACE: ${{ inputs.build-context }}/.repos
TARGET_WORKSPACE: ${{ inputs.build-context }}
ADDITIONAL_DEBS: git
AFTER_INIT_EMBED: '[[ -n ${{ inputs.git-https-server }} ]] && git config --global url.https://${{ inputs.git-https-user }}:${{ inputs.git-https-password }}@${{ inputs.git-https-server }}.insteadOf https://${{ inputs.git-https-server }}'
AFTER_INIT_EMBED: '[[ "$RMW_IMPLEMENTATION" == "rmw_zenoh_cpp" ]] && export UNDERLAY="/opt/ws_rmw_zenoh/install" ; [[ -n ${{ inputs.git-https-server }} ]] && git config --global url.https://${{ inputs.git-https-user }}:${{ inputs.git-https-password }}@${{ inputs.git-https-server }}.insteadOf https://${{ inputs.git-https-server }}'
SSH_PRIVATE_KEY: ${{ inputs.git-ssh-private-key }}
SSH_SERVER_HOSTKEYS: ${{ inputs.git-ssh-known-host-keys }}
DOCKER_RUN_OPTS: -u root:root
Expand Down

0 comments on commit 6519f2a

Please sign in to comment.