Skip to content

Update sonarcloud.yml #254

Update sonarcloud.yml

Update sonarcloud.yml #254

Workflow file for this run

name: Build docs
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dev-env:current-mpich
env:
# Directory that will be published on github pages
PUBLISH_DIR: ./_build/html
PETSC_ARCH: "linux-gnu-real64-32"
steps:
- uses: actions/checkout@v4
- name: Install DOLFINx
uses: jorgensd/actions/[email protected]
with:
dolfinx: main
ufl: main
ffcx: main
basix: main
petsc_arch: ${PETSC_ARCH}
- name: Install DOLFINx-MPC (C++)
run: |
cmake -G Ninja -B build-dir -DCMAKE_BUILD_TYPE=Release -S cpp/
cmake --build build-dir --parallel 3
cmake --install build-dir
- name: Install DOLFINx-MPC (Python)
run: python3 -m pip -v install --break-system-packages --config-settings=cmake.build-type="Release" --no-build-isolation ./python/[docs]
- name: Build docs
run: jupyter book build .
- name: Upload documentation as artifact
uses: actions/upload-artifact@v4
with:
name: documentation
path: ${{ env.PUBLISH_DIR }}
if-no-files-found: error