You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2025/09/01 23:43:58 UTC
(tvm-site) 01/01: FFI docs deploy
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-site.git
commit 411213fd32697b14975294afab8c5dfcc727b255
Author: tqchen <ti...@gmail.com>
AuthorDate: Mon Sep 1 19:35:12 2025 -0400
FFI docs deploy
---
.github/workflows/publish_tvm_ffi_docs.yml | 49 ++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/.github/workflows/publish_tvm_ffi_docs.yml b/.github/workflows/publish_tvm_ffi_docs.yml
new file mode 100644
index 0000000000..3f298af882
--- /dev/null
+++ b/.github/workflows/publish_tvm_ffi_docs.yml
@@ -0,0 +1,49 @@
+name: Publish tvm-ffi docs
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build_wheels:
+ name: Build docs
+ runs-on: ubuntu-latest
+ steps:
+ - uses: astral-sh/setup-uv@v4
+
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ path: tvm-site
+
+ - name: Checkout tvm
+ uses: actions/checkout@v4
+ with:
+ repository: apache/tvm
+ submodules: recursive
+ path: tvm
+
+ - name: Install wheel and requirements
+ working-directory: tvm/ffi
+ run: |
+ pip install .
+ pip install -r docs/requirements.txt
+ pip install linkify-it-py
+ cp ../../tvm-site/scripts/download_3rdparty_embeds.py docs
+
+ - name: Build docs
+ working-directory: tvm/ffi/docs
+ run: |
+ make html
+ python download_3rdparty_embeds.py -v
+
+ - name: Deploy docs
+ working-directory: tvm-site
+ run: |
+ git status
+ git checkout -B asf-site
+ git ls-tree HEAD ffi/ --name-only | grep -vP '^ffi/v\\d' | xargs rm -rf
+ cp -r ../tvm/ffi/docs/_build/html ffi
+ git add .
+ git commit -m"deploying ffi docs"
+ git status
+ git remote push origin asf-site