Merge pull request #14 from torusJKL/add-docstrings #1
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: docs | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake g++ sbcl curl just libfreetype-dev libx11-dev libfontconfig-dev libgl1-mesa-dev | |
| - name: Install Quicklisp | |
| run: | | |
| curl -O https://beta.quicklisp.org/quicklisp.lisp | |
| sbcl --load quicklisp.lisp \ | |
| --eval "(quicklisp-quickstart:install)" \ | |
| --quit | |
| - name: Get OCCT version | |
| run: | | |
| echo "OCCT_VERSION=$(grep -oP '(?<=occt-version := ")[^"]+' justfile)" >> $GITHUB_ENV | |
| - name: Cache OCCT build | |
| id: cache-occt | |
| uses: actions/cache@v4 | |
| with: | |
| path: .local | |
| key: occt-${{ env.OCCT_VERSION }}-visual | |
| - name: Build OCCT (cache miss) | |
| if: steps.cache-occt.outputs.cache-hit != 'true' | |
| run: | | |
| just setup 2>&1 | tail -500 | |
| exit ${PIPESTATUS[0]} | |
| - name: Build C wrapper | |
| run: just wrap | |
| - name: Generate Staple docs | |
| run: just docs | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs | |
| publish_branch: gh-pages |