Skip to content

Replace scalar enumerable_thread_specific with parallel_reduce (#121) #303

Replace scalar enumerable_thread_specific with parallel_reduce (#121)

Replace scalar enumerable_thread_specific with parallel_reduce (#121) #303

Workflow file for this run

name: Docs
on:
push:
branches:
- main
- docs
jobs:
Docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 10
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Requirements
run: |
sudo apt-get update
sudo apt-get install doxygen python3-sphinx graphviz ccache
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Cache Build
id: cache-build
uses: actions/[email protected]
with:
path: ${{ env.CACHE_PATH }}
key: docs-cache
restore-keys: Linux-Python-cache
- name: Prepare Ccache
run: |
ccache --max-size=1.0G
ccache -V && ccache --show-config
ccache --show-stats && ccache --zero-stats
- name: Build release docs
run: |
HEAD=$(git rev-parse HEAD)
git fetch --all --tags
cd docs
for version in $(git tag -l); do
echo "Processing $version:"
git checkout $version
# Fix links
grep -rli 'url = {https://ipc-sim.github.io/ipc-toolkit/}' ../* | xargs -i@ sed -i 's/ipc-sim.github.io\/ipc-toolkit\//github.com\/ipc-sim\/ipc-toolkit/g' @
grep -rli 'ipc-sim.github.io/ipc-toolkit' ../* | xargs -i@ sed -i 's/ipc-sim.github.io\/ipc-toolkit/ipctk.xyz/g' @
pip install --force-reinstall -v "ipctk==$version"
sphinx-build source build/html/$version \
-D html_theme_options.version_dropdown=true \
-D html_theme_options.version_json=https://ipctk.xyz/versions.json
# Discard changes
git reset --hard
done
pip uninstall -y ipctk
git checkout $HEAD
cp source/_static/versions.json build/html/
cd ..
- name: Build ipctk
run: |
pip install --verbose .
ccache --show-stats
- name: Build docs
run: |
cd docs
make html
cd build/html
touch .nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.