v0.7.0 #42
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: gh-pages | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
activate-environment: doc | |
channels: conda-forge | |
conda-remove-defaults: "true" | |
- name: Dependencies | |
shell: bash -l {0} | |
run: | | |
# Compilation related dependencies | |
conda install cmake make pkg-config doxygen graphviz | |
# Main dependencies | |
conda install eigen | |
- name: Print environment | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
env | |
- name: Configure | |
shell: bash -l {0} | |
run: | | |
git submodule update --init | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_INTERFACE:BOOL=OFF -DPYTHON_EXECUTABLE=$(which python3) -DBUILD_DOCUMENTATION:BOOL=ON -DINSTALL_DOCUMENTATION:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DBUILD_WITH_VECTORIZATION_SUPPORT:BOOL=OFF | |
- name: Build documentation | |
shell: bash -l {0} | |
run: | | |
cd build | |
cmake --build . --config Release --target doc | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: site | |
path: build/doc/doxygen-html | |
deploy: | |
runs-on: ubuntu-20.04 | |
needs: [build] | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
name: site | |
path: site | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: site |