Skip to content

Commit 159e299

Browse files
authored
Merge pull request #146 from Simple-Robotics/topic/add-gh-pages
[github/workflows] Add gh-pages workflow
2 parents c5e6607 + 474ad74 commit 159e299

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

.github/workflows/gh-pages.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: gh-pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: conda-incubator/setup-miniconda@v3
15+
with:
16+
miniforge-variant: Mambaforge
17+
miniforge-version: latest
18+
channels: conda-forge
19+
python-version: "3.10"
20+
activate-environment: doc
21+
22+
- name: Dependencies
23+
shell: bash -l {0}
24+
run: |
25+
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
26+
conda config --remove channels defaults
27+
28+
# Compilation related dependencies
29+
mamba install cmake make pkg-config doxygen graphviz
30+
31+
# Main dependencies
32+
mamba install eigen pinocchio fmt proxsuite-nlp
33+
34+
- name: Print environment
35+
shell: bash -l {0}
36+
run: |
37+
conda info
38+
mamba list
39+
env
40+
41+
- name: Configure
42+
shell: bash -l {0}
43+
run: |
44+
git submodule update --init
45+
mkdir build
46+
cd build
47+
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_INTERFACE:BOOL=OFF\
48+
-DPYTHON_EXECUTABLE=$(which python3) -DBUILD_DOCUMENTATION:BOOL=ON \
49+
-DBUILD_BENCHMARKS:BOOL=OFF -DINSTALL_DOCUMENTATION:BOOL=ON -DBUILD_TESTING:BOOL=OFF \
50+
-DBUILD_CROCODDYL_COMPAT:BOOL=OFF
51+
52+
- name: Build documentation
53+
shell: bash -l {0}
54+
run: |
55+
cd build
56+
cmake --build . --config Release --target doc
57+
58+
- name: Archive artifacts
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: site
62+
path: build/doc/doxygen-html
63+
64+
deploy:
65+
runs-on: ubuntu-20.04
66+
needs: [build]
67+
steps:
68+
- name: Download artifacts
69+
uses: actions/download-artifact@v4
70+
with:
71+
name: site
72+
path: site
73+
- name: Deploy
74+
uses: JamesIves/[email protected]
75+
with:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
BRANCH: gh-pages
78+
FOLDER: site

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Aligator
22

3+
<a href="https://simple-robotics.github.io/aligator/"><img src="https://img.shields.io/badge/docs-online-brightgreen" alt="Documentation"/></a>
4+
35
**Aligator** is an efficient and versatile trajectory optimization library for robotics and beyond.
46

57
It can be used for motion generation and planning, optimal estimation, deployment of model-predictive control on complex systems, and much more.

0 commit comments

Comments
 (0)