Remove 'sudo' from dependency installation commands in CI workflow #24
This file contains hidden or 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: publish-docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy-docs: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12.8 | |
| - name: Install dependencies | |
| run: | | |
| apt update && apt install -y libegl1-mesa-dev | |
| apt-get update && apt-get install infiniband-diags ibverbs-utils libibverbs-dev libfabric1 libfabric-dev libpsm2-dev -y | |
| apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev | |
| apt-get install librdmacm-dev libpsm2-dev | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| uv sync --group docs | |
| uv run poe setup_myogen | |
| - name: Build the docs | |
| run: | | |
| source .venv/bin/activate | |
| cd docs | |
| make clean | |
| make html || make html # Retry once if first build fails | |
| cd .. | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/build/html |