Skip to content

Update CI

Update CI #48

Workflow file for this run

# Simple set of rules for GitHub actions integration with a ROS project
#
name: Build
on:
push:
branches:
- main
pull_request:
env:
CORTEX_PATH: ${{ github.workspace }}/cortex
jobs:
install-cortex:
runs-on: ubuntu-22.04
steps:
- name: Cache CORTEX
id: cache-cortex
uses: actions/cache@v4
with:
path: ${{ env.CORTEX_PATH }}
key: cortex-${{ runner.os }}-ubuntu-22.04
- name: Install Cortex
run: |
mkdir -p $CORTEX_PATH && cd $CORTEX_PATH
curl -o installation.sh https://raw.githubusercontent.com/grupo-avispa/cortex/development/installation.sh
chmod +x installation.sh
./installation.sh
build-dsr-ros:
runs-on: ubuntu-22.04
needs: install-cortex
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Setup ROS 2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: Restore CORTEX cache
id: restore-cache-cortex
uses: actions/cache@v4
with:
path: ${{ env.CORTEX_PATH }}
key: cortex-${{ runner.os }}-ubuntu-22.04
- name: Restore CORTEX headers
if: steps.restore-cache-cortex.outputs.cache-hit != 'true'
run: |
#cd $CORTEX_PATH/build && make install
#cd $CORTEX_PATH/build && ls -la
# - name: Build packages
# uses: ros-tooling/[email protected]
# with:
# package-name:
# dsr_ros
# dsr_agents
# dsr_bridge
# dsr_msgs
# dsr_rqt_plugin
# dsr_util
# target-ros2-distro: humble
# colcon-defaults: |
# {
# "build": {
# "mixin": ["coverage-gcc", "coverage-pytest"]
# },
# "test": {
# "mixin": ["coverage-pytest"]
# }
# }
# skip-tests: false
# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ros_ws/lcov/total_coverage.info,ros_ws/coveragepy/.coverage
# flags: unittests
# name: codecov-umbrella
# slug: grupo-avispa/dsr_ros