Skip to content

Commit

Permalink
Do not install rustc via rosdep
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Sep 13, 2023
1 parent cae5848 commit 27a4dc0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/nexus_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
image: ${{ matrix.docker_image }}
timeout-minutes: 60
steps:
- name: Install deps for Rust
run: |
apt update && apt install -y git curl libclang-dev
- name: Setup Rust for nexus_zenoh_bridge
uses: dtolnay/[email protected]
with:
components: clippy, rustfmt
- name: Install colcon cargo
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ For details on architecture and concepts [see](./docs/concepts.md).

## Setup

### Install system dependencies
While `cargo` and `rustc` can be installed via rosdep, the version that available is
v1.66 on most target platforms. However most dependencies require newer versions of `cargo` and `rustc`.
Hence for now, we will install the latest version manually.
TODO: Consider adding this dep back for J turtle if Ubuntu 24.04 has the newer.
cargo and rustc pkgs.

```bash
sudo apt update && sudo apt install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

### Setup the NEXUS workspace

```bash
Expand All @@ -21,6 +33,7 @@ cd ~/ws_nexus/src/
git clone [email protected]:OpenSourceRobotics/nexus
vcs import . < nexus/abb.repos
cd ~/ws_nexus

rosdep install --from-paths src --ignore-src --rosdistro iron -y -r
```

Expand Down
7 changes: 6 additions & 1 deletion nexus_zenoh_bridge_dds_vendor/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_vendor_package</buildtool_depend>

<build_depend>cargo</build_depend>
<!-- Installing cargo via rosdep will install the v1.66 on most target platforms.
However most dependencies require newer versions of cargo and rustc.
Hence for now, we will install the latest version manually.
TODO: Consider adding this dep back for J turtle if Ubuntu 24.04 has the newer
cargo and rustc pkgs. -->
<!-- <build_depend>cargo</build_depend> -->
<build_depend>clang</build_depend>

<export>
Expand Down

0 comments on commit 27a4dc0

Please sign in to comment.