update readme #8
Workflow file for this run
This file contains hidden or 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
| name: 'Ubuntu 20.04 + ROS Noetic: Build ' | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'feature/CI' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {name: 'Ubuntu 20.04 + ROS Noetic: Build ', rosdistro: 'noetic', container: 'ros:noetic-ros-base-focal'} | |
| container: ${{ matrix.config.container }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup ccache | |
| shell: bash | |
| run: | | |
| apt update && apt install -y ccache | |
| export PATH="/usr/lib/ccache:$PATH" | |
| export CCACHE_DIR=$HOME/catkin_ws/ccache | |
| export CCACHE_STAMP=$(date +%Y-%m-%d_%H-%M-%S) | |
| echo "Updated PATH=$PATH" | |
| echo "Set CCACHE_DIR=$CCACHE_DIR" | |
| echo "Set CCACHE_STAMP=$CCACHE_STAMP" | |
| echo "CCACHE_DIR=$CCACHE_DIR" >> $GITHUB_ENV | |
| echo "CCACHE_STAMP=$CCACHE_STAMP" >> $GITHUB_ENV | |
| echo "PATH=$PATH" >> $GITHUB_ENV | |
| mkdir -p $CCACHE_DIR | |
| ccache --max-size=1G | |
| - name: Cache ccache files | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.CCACHE_DIR }} | |
| key: ${{ matrix.config.name }}-ccache-${{ env.CCACHE_STAMP }} | |
| restore-keys: | | |
| ${{ matrix.config.name }}-ccache- | |
| - name: Install System Deps on Noetic | |
| if: ${{ matrix.config.container == 'ros:noetic-ros-base-focal' }} | |
| run: | | |
| sudo apt update | |
| sudo apt-get install -y --no-install-recommends ros-noetic-desktop-full=1.5.0-1* | |
| sudo apt-get install -y python3-vcstool python3-catkin-tools libgoogle-glog-dev ros-$ROS_DISTRO-cmake-modules | |
| sudo apt-get install -y git build-essential cmake libeigen3-dev | |
| chmod +x $GITHUB_WORKSPACE/docker/scripts/install_ceres.sh | |
| sudo $GITHUB_WORKSPACE/docker/scripts/install_ceres.sh | |
| - name: Release Build Test | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| shell: bash | |
| run: | | |
| apt update | |
| mkdir -p $HOME/catkin_ws/src; | |
| cd $HOME/catkin_ws | |
| catkin init | |
| catkin config --extend "/opt/ros/${{matrix.config.rosdistro}}" | |
| catkin config --merge-devel | |
| catkin config --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo | |
| cd $HOME/catkin_ws/src | |
| ln -s $GITHUB_WORKSPACE | |
| catkin build -j$(nproc) -l$(nproc) bievr_lio_ros |