Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 committed Feb 22, 2024
1 parent 1625c86 commit d135731
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,30 @@ concurrency:
jobs:
Build:
runs-on: ubuntu-latest
image: ubuntu:22.04
container:
image: ubuntu:22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
clean: true
path: repo

- name: Deps
run: |
apt update
apt install -y python3 python3-pip git build-essential cmake rsync
apt install -y python3 python3-pip git build-essential cmake rsync gcc-arm-none-eabi
pip3 install catkin_pkg lark-parser colcon-common-extensions
apt install gcc-arm-none-eabi
- name: Build
run: |
cd repo
MICROROS_TARGET=GENERIC_ARM ./build_micro_ros_library.sh
export TOOLCHAIN_PREFIX=arm-none-eabi-
cmake .. -DCMAKE_TOOLCHAIN_FILE=/ws/toolchain.cmake
cd .github/sample_ci_project
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/ws/toolchain.cmake
make -j$(nproc)
4 changes: 2 additions & 2 deletions build_micro_ros_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fi
if [ ! -d "$MICRO_ROS_BUILD_DIR/dev/install" ]; then
# Install micro-ROS dev environment
pushd $MICRO_ROS_BUILD_DIR/dev/ > /dev/null
colcon build ;
colcon build --event-handlers compile_commands- console_stderr-;
popd > /dev/null
fi

Expand Down Expand Up @@ -162,7 +162,7 @@ if [ ! -d "$MICRO_ROS_BUILD_DIR/microros/install" ]; then
--merge-install \
--packages-ignore-regex=.*_cpp \
--metas $COLCON_META \
--event-handlers compile_commands- \
--event-handlers compile_commands- console_stderr- \
--cmake-args \
"--no-warn-unused-cli" \
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=OFF \
Expand Down

0 comments on commit d135731

Please sign in to comment.