mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-09 04:48:54 +08:00
Some checks failed
Build and Test / check_lint (push) Has been cancelled
Build and Test / linux_build_and_test (ubuntu-22.04) (push) Has been cancelled
Build and Test / linux_build_and_test (ubuntu-22.04-arm) (push) Has been cancelled
Build and Test / mac_build_and_test (14.0) (push) Has been cancelled
Build and Test / mac_build_and_test (15.0) (push) Has been cancelled
Build and Test / cuda_build_and_test (cuda-12.6) (push) Has been cancelled
Build and Test / cuda_build_and_test (cuda-12.9) (push) Has been cancelled
Build and Test / build_documentation (push) Has been cancelled
Build and Test / Linux Fedora CPP Build (aarch64) (push) Has been cancelled
Build and Test / Linux Fedora CPP Build (x86_64) (push) Has been cancelled
39 lines
947 B
YAML
39 lines
947 B
YAML
name: 'Build Documentation'
|
|
description: 'Build documentation'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup machine
|
|
uses: ./.github/actions/setup-linux
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get install -y doxygen
|
|
source .venv/bin/activate
|
|
pip install -r docs/requirements.txt
|
|
pip install . -v
|
|
|
|
- name: Build documentation
|
|
shell: bash
|
|
run: |
|
|
source .venv/bin/activate
|
|
cd docs
|
|
doxygen
|
|
make html O=-W
|
|
|
|
- name: Create artifact tar
|
|
shell: bash
|
|
run: tar -cf artifact.tar -C docs --dereference build/html index.html
|
|
|
|
# Do it manually because upload-pages-artifact requires gtar
|
|
- name: Upload artifact
|
|
id: upload-artifact
|
|
uses: actions/upload-artifact@v5
|
|
with:
|
|
name: github-pages
|
|
path: artifact.tar
|
|
retention-days: 1
|
|
if-no-files-found: error
|