-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.21 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Documentation
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Instal libscientific library
run: |
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install liblapack-dev cmake python3-venv libclang-14-dev
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
sudo make install
- name: Install libscientific python package
run: |
python -m venv lscivenv
. lscivenv/bin/activate
python -m pip install --upgrade --upgrade-strategy eager --no-cache-dir ./src/python_bindings
- name: Build documentation
run: |
. lscivenv/bin/activate
python -m pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
cd docs/
make html
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build/html/
branch: gh-pages