Skip to content

build(deps): bump actions/configure-pages from 4 to 5 #85

build(deps): bump actions/configure-pages from 4 to 5

build(deps): bump actions/configure-pages from 4 to 5 #85

Workflow file for this run

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: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}