clang-format: run indent-all #924
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: indent | |
on: [push, pull_request] | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
permissions: | |
contents: read | |
jobs: | |
indent: | |
# run the indent checks | |
name: indent | |
runs-on: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 100 | |
- name: setup | |
run: | | |
./contrib/utilities/download_clang_format | |
sudo apt update && sudo apt install doxygen graphviz perl texlive-bibtex-extra | |
doxygen --version | |
- name: indent | |
run: | | |
./contrib/utilities/check_indentation.sh | |
- name: documentation | |
run: | | |
mkdir build | |
cd build | |
cmake -DDEAL_II_COMPONENT_DOCUMENTATION=ON -DDEAL_II_DOXYGEN_USE_MATHJAX=ON .. | |
make -j 2 documentation | |
cat doxygen.log | |
# Suppress: | |
# warning: Inheritance graph for 'SmartPointer' not generated, too many nodes (138), threshold is 50. Consider increasing DOT_GRAPH_MAX_NODES. | |
# warning: Inheritance graph for 'Subscriptor' not generated, too many nodes (209), threshold is 50. Consider increasing DOT_GRAPH_MAX_NODES. | |
sed -i '/Inheritance graph/d' doxygen.log | |
! [ -s doxygen.log ] || exit 1 | |
tar -czf doxygen_documentation.tar.gz doc/doxygen | |
- name: archive documentation | |
uses: actions/upload-artifact@v3 | |
with: | |
name: doxygen_documentation.tar.gz | |
path: build/doxygen_documentation.tar.gz |