mirror of
https://github.com/RainerKuemmerle/g2o.git
synced 2026-01-18 21:21:18 +01:00
Bumps the actions group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 5.5.1 to 5.5.2 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v5.5.1...v5.5.2) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 5.5.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
94 lines
2.6 KiB
YAML
94 lines
2.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- pymem
|
|
pull_request:
|
|
|
|
release:
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.config.name }}
|
|
runs-on: ${{ matrix.config.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
config:
|
|
- {
|
|
name: "Ubuntu Latest GCC",
|
|
os: ubuntu-latest,
|
|
build_type: "Debug",
|
|
do_coverage: "ON",
|
|
}
|
|
- {
|
|
name: "macOS Latest Clang",
|
|
os: macos-latest,
|
|
build_type: "Debug",
|
|
do_coverage: "OFF",
|
|
}
|
|
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 25
|
|
|
|
- name: Print env
|
|
run: |
|
|
echo github.ref: ${{github.ref}}
|
|
echo github.event.action: ${{github.event.action}}
|
|
echo github.event_name: ${{github.event_name}}
|
|
echo runner.os: ${{runner.os}}
|
|
|
|
- name: ccache
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
|
with:
|
|
key: ${{ matrix.config.os }}-${{ matrix.config.build_type }}
|
|
max-size: 2000M
|
|
|
|
- name: Install dependencies on Ubuntu
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libeigen3-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev-qt5 libsuitesparse-dev lcov libspdlog-dev
|
|
|
|
- name: Install dependencies on macOS
|
|
if: runner.os == 'macOS'
|
|
run: brew install eigen coreutils
|
|
|
|
- name: Configure ccache for macOS
|
|
if: runner.os == 'macOS'
|
|
run: |
|
|
# See https://github.com/hendrikmuhs/ccache-action/issues/146
|
|
ccache --set-config=compiler_check=content
|
|
|
|
- name: Configure CMake
|
|
run: |
|
|
echo "number of cores: $(nproc) $(nproc --all)"
|
|
cmake --version
|
|
cmake -B ${{github.workspace}}/build -DBUILD_UNITTESTS=ON -DBUILD_CODE_COVERAGE=${{matrix.config.do_coverage}} -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
|
|
- name: Build Introspection
|
|
shell: bash
|
|
run: |
|
|
echo "g2o config.h"
|
|
cat ${{github.workspace}}/build/g2o/config.h
|
|
echo "ENV"
|
|
env | sort
|
|
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{matrix.config.build_type}} -j $(nproc)
|
|
|
|
- name: Test
|
|
working-directory: ${{github.workspace}}/build
|
|
run: ctest -C ${{matrix.config.build_type}} --extra-verbose --output-on-failure
|
|
|
|
- name: Coverage
|
|
if: matrix.config.do_coverage == 'ON'
|
|
uses: codecov/codecov-action@v5.5.2
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|