3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-25 05:26:51 +00:00
z3/.github/workflows/docs.yml
Nikolaj Bjorner 04d9504cc3
Simplify CI workflow by removing emscripten steps
Removed unnecessary steps for emscripten setup and TypeScript/WASM build in the CI workflow.
2025-12-17 20:28:16 +00:00

66 lines
1.5 KiB
YAML

name: Documentation
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
env:
EM_VERSION: 3.1.73
jobs:
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: "lts/*"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz python3 python3-pip
- name: Build Z3 natively for Python documentation
run: |
python3 scripts/mk_make.py --python
cd build && make -j$(nproc)
cd ../src/api/python && python3 -m pip install --user .
- name: Generate Documentation (from doc directory)
working-directory: doc
run: python3 mk_api_doc.py --output-dir=api
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'doc/api/html'
deploy:
name: Deploy to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4