-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port CI fixes from #955 but targeting ubuntu 22 and ROS 2 Humble
Signed-off-by: Aaron Chong <[email protected]>
- Loading branch information
1 parent
5237e72
commit 1fd22ee
Showing
8 changed files
with
82 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,8 @@ inputs: | |
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: '8.15.7' | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'pnpm' | ||
- name: Install pipenv | ||
run: pip3 install pipenv | ||
shell: bash | ||
- name: Install dependencies | ||
run: pnpm install -w --filter ${{ inputs.package }}... --no-frozen-lockfile | ||
run: pnpm install -w --filter ${{ inputs.package }}... | ||
shell: bash | ||
- name: Build | ||
if: '!${{ inputs.skip-build }}' | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
ARG BASE_IMAGE=docker.io/ros:humble-ros-base | ||
FROM $BASE_IMAGE | ||
ARG BRANCH=main | ||
ARG ROS_DISTRO=humble | ||
|
||
### build minimal rmf | ||
|
||
RUN apt update && apt install -y curl | ||
|
||
# # fetch sources | ||
RUN mkdir -p /rmf && cd /rmf \ | ||
&& curl -sL https://github.com/open-rmf/rmf_internal_msgs/archive/refs/heads/$BRANCH.tar.gz -o rmf_internal_msgs.tar.gz \ | ||
&& curl -sL https://github.com/open-rmf/rmf_building_map_msgs/archive/refs/heads/$BRANCH.tar.gz -o rmf_building_map_msgs.tar.gz \ | ||
&& mkdir -p /rmf/src/rmf/rmf_internal_msgs && tar zxf rmf_internal_msgs.tar.gz -C /rmf/src/rmf/rmf_internal_msgs --strip-components=1 && rm rmf_internal_msgs.tar.gz \ | ||
&& mkdir -p /rmf/src/rmf/rmf_building_map_msgs && tar zxf rmf_building_map_msgs.tar.gz -C /rmf/src/rmf/rmf_building_map_msgs --strip-components=1 && rm rmf_building_map_msgs.tar.gz | ||
|
||
RUN rosdep update && rosdep install --from-paths /rmf/src -yi | ||
|
||
RUN cd /rmf \ | ||
&& . /opt/ros/$ROS_DISTRO/setup.sh \ | ||
&& colcon build --merge-install --install-base /opt/rmf --cmake-args -DCMAKE_BUILD_TYPE=Release \ | ||
&& rm -rf /rmf | ||
|
||
# install tools for rmf-web | ||
|
||
RUN curl -fsSL https://get.pnpm.io/install.sh | bash - | ||
# shell runs in non-interactive mode, which does not source .bashrc so we need to set the PATH manually | ||
ENV PNPM_HOME /root/.local/share/pnpm | ||
ENV PATH "$PNPM_HOME:$PATH" | ||
|
||
# nodejs seems to have changed the official mirror, the default in pnpm is very slow now | ||
RUN pnpm config -g set 'node-mirror:release' https://nodejs.org/dist && pnpm env use --global lts | ||
|
||
RUN apt update && apt install -y python3-venv |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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