build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 #116
Workflow file for this run
This file contains 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: CI | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y build-essential libeigen3-dev lcov gcovr doxygen | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.25" | |
- name: Configure CMake | |
run: cmake -B build -S . -DBUILD_TESTING=ON -DBUILD_DOCS=ON -DENABLE_COVERAGE=ON | |
- name: Build | |
run: cmake --build build | |
- name: Install | |
run: sudo cmake --install build | |
- name: Test | |
run: ctest --test-dir build --output-on-failure | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
docs: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
needs: build-and-test | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y build-essential doxygen libeigen3-dev | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.25" | |
- name: Configure CMake | |
run: cmake -B build -S . -DBUILD_DOCS=ON -DBUILD_TESTING=OFF | |
- name: Build | |
run: cmake --build build | |
- name: Setup pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "build/docs/html/" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
release: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
permissions: | |
contents: write | |
pull-requests: write | |
needs: | |
- docs | |
- build-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
with: | |
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} |