Skip to content

Commit e1d4974

Browse files
Adds a new workflow to update package index
When we want to update to a new release of MLIR-TRT, we first need to publish `packages.html` so we are able to `pip install` correctly. Previously, we were doing this in each nightly, but it's better to do so whenever we push a change to `packages.html` on `main`. That's what this workflow does.
1 parent a31da20 commit e1d4974

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Post-merge package index update
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths: ['tripy/docs/packages.html']
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
publish-package-index:
22+
runs-on: tripy-self-hosted
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
container:
27+
image: ghcr.io/nvidia/tensorrt-incubator/tripy:latest
28+
volumes:
29+
- ${{ github.workspace }}/tripy:/tripy
30+
options: --gpus all
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: build-docs
35+
run: |
36+
cd /tripy/
37+
python3 docs/generate_rsts.py
38+
sphinx-build build/doc_sources build/docs -c docs/ -j 4 -W -n
39+
cp docs/packages.html build/docs/
40+
41+
- uses: actions/configure-pages@v5
42+
43+
- uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: "/tripy/build/docs"
46+
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

tripy/docs/packages.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,23 @@ <h1>Package Index</h1>
8585
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.34/mlir_tensorrt_runtime-0.1.34+cuda12.trt102-cp312-cp312-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.34+cuda12.trt102-cp312-cp312-linux_x86_64.whl</a><br>
8686
<a
8787
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.34/mlir_tensorrt_runtime-0.1.34+cuda12.trt102-cp39-cp39-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.34+cuda12.trt102-cp39-cp39-linux_x86_64.whl</a><br>
88+
89+
<a
90+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp310-cp310-linux_x86_64.whl">mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp310-cp310-linux_x86_64.whl</a><br>
91+
<a
92+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp311-cp311-linux_x86_64.whl">mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp311-cp311-linux_x86_64.whl</a><br>
93+
<a
94+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp312-cp312-linux_x86_64.whl">mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp312-cp312-linux_x86_64.whl</a><br>
95+
<a
96+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp39-cp39-linux_x86_64.whl">mlir_tensorrt_compiler-0.1.36+cuda12.trt102-cp39-cp39-linux_x86_64.whl</a><br>
97+
<a
98+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp310-cp310-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp310-cp310-linux_x86_64.whl</a><br>
99+
<a
100+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp311-cp311-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp311-cp311-linux_x86_64.whl</a><br>
101+
<a
102+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp312-cp312-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp312-cp312-linux_x86_64.whl</a><br>
103+
<a
104+
href="https://github.com/NVIDIA/TensorRT-Incubator/releases/download/mlir-tensorrt-v0.1.36/mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp39-cp39-linux_x86_64.whl">mlir_tensorrt_runtime-0.1.36+cuda12.trt102-cp39-cp39-linux_x86_64.whl</a><br>
88105
</body>
89106

90107
</html>

0 commit comments

Comments
 (0)