@@ -5,67 +5,66 @@ name: Generate Docs
55# Controls when the action will run. Triggers the workflow on push or pull request
66# events but only for the master branch
77on :
8- push :
9- branches : [main]
8+ push :
9+ branches : [main]
1010
1111jobs :
12- build-docs :
13- runs-on : linux.g5.4xlarge.nvidia.gpu
14- if : ${{ ! contains(github.actor, 'pytorchbot') }}
15- environment : pytorchbot-env
16- container :
17- image : docker.io/pytorch/manylinux2_28-builder:cuda13.0
18- options : --gpus all
19- env :
20- CUDA_HOME : /usr/local/cuda-13.0
21- VERSION_SUFFIX : cu130
22- CU_VERSION : cu130
23- CHANNEL : nightly
24- CI_BUILD : 1
25- steps :
26- - uses : actions/checkout@v4
27- with :
28- ref : ${{github.head_ref}}
29- token : ${{ secrets.GH_PYTORCHBOT_TOKEN }}
30- - name : Select Python / CUDA
31- run : |
32- git config --global --add safe.directory /__w/TensorRT/TensorRT
33- echo "/opt/python/cp311-cp311/bin/" >> $GITHUB_PATH
34-
35- - name : Install base deps
36- run : |
37- python3 -m pip install pip --upgrade
38- python3 -m pip install pyyaml numpy torch --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu130
39- ./packaging/pre_build_script.sh
40- - name : Get HEAD SHA
41- id : vars
42- run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
43- - name : Build Python Package
44- run : |
45- python3 -m pip install --pre . --extra-index-url https://download.pytorch.org/whl/nightly/cu130
46- - name : Generate New Docs
47- run : |
48- cd docsrc
49- dnf clean all
50- dnf makecache --refresh
51- dnf install yum-utils -y
52- dnf config-manager --set-enabled powertools
53- dnf update --skip-broken --nobest -y
54- dnf install -y doxygen pandoc
55- python3 -m pip install -r requirements.txt
56- python3 -c "import torch_tensorrt; print(torch_tensorrt.__version__)"
57- make html
58- cd ..
59- - uses : stefanzweifel/git-auto-commit-action@v4
60- with :
61- # Required
62- commit_message : " docs: [Automated] Regenerating documenation for ${{ steps.vars.outputs.sha }}"
63- commit_options : " --no-verify --signoff"
64- file_pattern : docs/
65- commit_user_name : Torch-TensorRT Github Bot
66- commit_user_email : torch-tensorrt.github.bot@nvidia.com
67- commit_author : Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
12+ build-docs :
13+ runs-on : linux.g5.4xlarge.nvidia.gpu
14+ if : ${{ ! contains(github.actor, 'pytorchbot') }}
15+ environment : pytorchbot-env
16+ container :
17+ image : docker.io/pytorch/manylinux2_28-builder:cuda13.0
18+ options : --gpus all
19+ env :
20+ CUDA_HOME : /usr/local/cuda-13.0
21+ VERSION_SUFFIX : cu130
22+ CU_VERSION : cu130
23+ CHANNEL : nightly
24+ CI_BUILD : 1
25+ steps :
26+ - uses : actions/checkout@v4
27+ with :
28+ ref : ${{github.head_ref}}
29+ token : ${{ secrets.GH_PYTORCHBOT_TOKEN }}
30+ - name : Select Python / CUDA
31+ run : |
32+ git config --global --add safe.directory /__w/TensorRT/TensorRT
33+ echo "/opt/python/cp311-cp311/bin/" >> $GITHUB_PATH
34+ - name : Install base deps
35+ run : |
36+ python3 -m pip install pip --upgrade
37+ python3 -m pip install pyyaml numpy torch --use-deprecated=legacy-resolver --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu130
38+ ./packaging/pre_build_script.sh
39+ - name : Get HEAD SHA
40+ id : vars
41+ run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
42+ - name : Build Python Package
43+ run : |
44+ python3 -m pip install --use-deprecated=legacy-resolver --pre . --extra-index-url https://download.pytorch.org/whl/nightly/cu130
45+ - name : Generate New Docs
46+ run : |
47+ cd docsrc
48+ dnf clean all
49+ dnf makecache --refresh
50+ dnf install yum-utils -y
51+ dnf config-manager --set-enabled powertools
52+ dnf update --skip-broken --nobest -y
53+ dnf install -y doxygen pandoc
54+ python3 -m pip install -r requirements.txt
55+ python3 -c "import torch_tensorrt; print(torch_tensorrt.__version__)"
56+ make html
57+ cd ..
58+ - uses : stefanzweifel/git-auto-commit-action@v4
59+ with :
60+ # Required
61+ commit_message : " docs: [Automated] Regenerating documenation for ${{ steps.vars.outputs.sha }}"
62+ commit_options : " --no-verify --signoff"
63+ file_pattern : docs/
64+ commit_user_name : Torch-TensorRT Github Bot
65+ commit_user_email : torch-tensorrt.github.bot@nvidia.com
66+ commit_author : Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
6867
6968concurrency :
70- group : ${{ github.workflow }}-${{ github.ref_name }}
71- cancel-in-progress : true
69+ group : ${{ github.workflow }}-${{ github.ref_name }}
70+ cancel-in-progress : true
0 commit comments