Skip to content

Commit 4434abd

Browse files
Free space in docker
Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
1 parent b81263f commit 4434abd

File tree

2 files changed

+34
-28
lines changed

2 files changed

+34
-28
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
1212

1313
micro_ros_zephyr_module:
1414
runs-on: ubuntu-latest
15-
container:
16-
image: zephyrprojectrtos/ci:v0.26.17
17-
options: --user root
18-
env:
19-
CMAKE_PREFIX_PATH: /opt/toolchains
2015
strategy:
2116
fail-fast: false
2217
matrix:
@@ -26,27 +21,37 @@ jobs:
2621
with:
2722
path: micro_ros_zephyr_module
2823

29-
- name: Build
30-
shell: bash
24+
- name: Free disk space
3125
run: |
32-
# Zephyr setup
33-
apt -y update
34-
west init
35-
cd zephyr
36-
git checkout ${{ matrix.zephyr_version }}
37-
cd ..
38-
west update --narrow
39-
40-
# Installing micro-ROS prerequisites
41-
pip3 install catkin_pkg lark-parser empy colcon-common-extensions
42-
43-
if [[ ${{ github.ref_name }} == "humble" ]] || [[ ${{ github.head_ref }} == *"humble"* ]]; then
44-
# Use empy version 3.3.4 for Humble
45-
pip3 install empy==3.3.4
46-
fi
47-
48-
# Build with Serial USB transport
49-
west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
50-
51-
# Build with Serial transport
52-
west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y
26+
sudo rm -rf /usr/share/dotnet
27+
sudo rm -rf /usr/local/lib/android
28+
sudo rm -rf /opt/ghc
29+
sudo docker image prune --all --force
30+
31+
- name: Build
32+
uses: addnab/docker-run-action@v3
33+
with:
34+
image: zephyrprojectrtos/ci:v0.26.17
35+
options: --user root -v ${{ github.workspace }}:/github/workspace -w /github/workspace -e CMAKE_PREFIX_PATH=/opt/toolchains
36+
run: |
37+
# Zephyr setup
38+
apt -y update
39+
west init
40+
cd zephyr
41+
git checkout ${{ matrix.zephyr_version }}
42+
cd ..
43+
west update --narrow
44+
45+
# Installing micro-ROS prerequisites
46+
pip3 install catkin_pkg lark-parser empy colcon-common-extensions
47+
48+
if [[ ${{ github.ref_name }} == "humble" ]] || [[ ${{ github.head_ref }} == *"humble"* ]]; then
49+
# Use empy version 3.3.4 for Humble
50+
pip3 install empy==3.3.4
51+
fi
52+
53+
# Build with Serial USB transport
54+
west build -b disco_l475_iot1 /github/workspace/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
55+
56+
# Build with Serial transport
57+
west build -b disco_l475_iot1 /github/workspace/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y

modules/libmicroros/libmicroros.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ $(COMPONENT_PATH)/micro_ros_dev/install:
6868
git clone -b kilted https://github.com/ros2/ament_cmake_ros src/ament_cmake_ros; \
6969
git clone -b kilted https://github.com/ament/ament_index src/ament_index; \
7070
touch src/ament_cmake_ros/rmw_test_fixture_implementation/COLCON_IGNORE; \
71+
touch src/ament_cmake_ros/rmw_test_fixture/COLCON_IGNORE; \
7172
colcon build --cmake-args -DBUILD_TESTING=OFF;
7273

7374
$(COMPONENT_PATH)/micro_ros_src/src:

0 commit comments

Comments
 (0)