-
Notifications
You must be signed in to change notification settings - Fork 30
56 lines (53 loc) · 1.51 KB
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Docs
on:
workflow_run:
workflows: [linux_cuda_wheels]
types:
- completed
defaults:
run:
shell: bash -l -eo pipefail {0}
jobs:
build:
runs-on: linux.g5.4xlarge.nvidia.gpu
strategy:
fail-fast: false
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Setup conda env
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
activate-environment: test
python-version: '3.9'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Download wheel
uses: actions/download-artifact@v3
with:
name: pytorch_torchcodec__3.9_cu124_x86_64
path: pytorch/torchcodec/dist/
- name: Install torchcodec from the wheel
run: |
wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`
echo Installing $wheel_path
${CONDA_RUN} python -m pip install $wheel_path -vvv
- name: Install FFMPEG and other deps
run: |
conda install cuda-nvrtc=12.4 libnpp -c nvidia
conda install ffmpeg=7 -c conda-forge
ffmpeg -version
- name: Install doc dependencies
run: |
cd docs
python -m pip install -r requirements.txt
- name: Build docs
run: |
cd docs
make html
- uses: actions/upload-artifact@v3
with:
name: Built-Docs
path: docs/build/html/