|
1 | | -name: Docs |
| 1 | +# name: Docs |
2 | 2 |
|
3 | | -on: |
4 | | - push: |
5 | | - branches: [ main ] |
6 | | - pull_request: |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: [ main ] |
| 6 | +# pull_request: |
7 | 7 |
|
8 | | -permissions: |
9 | | - id-token: write |
10 | | - contents: write |
| 8 | +# permissions: |
| 9 | +# id-token: write |
| 10 | +# contents: write |
11 | 11 |
|
12 | | -defaults: |
13 | | - run: |
14 | | - shell: bash -l -eo pipefail {0} |
| 12 | +# defaults: |
| 13 | +# run: |
| 14 | +# shell: bash -l -eo pipefail {0} |
15 | 15 |
|
16 | | -jobs: |
17 | | - generate-matrix: |
18 | | - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
19 | | - with: |
20 | | - package-type: wheel |
21 | | - os: linux |
22 | | - test-infra-repository: pytorch/test-infra |
23 | | - test-infra-ref: main |
24 | | - with-cpu: disable |
25 | | - with-xpu: disable |
26 | | - with-rocm: disable |
27 | | - with-cuda: enable |
28 | | - build-python-only: "disable" |
29 | | - build: |
30 | | - needs: generate-matrix |
31 | | - strategy: |
32 | | - fail-fast: false |
33 | | - name: Build and Upload wheel |
34 | | - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main |
35 | | - with: |
36 | | - repository: pytorch/torchcodec |
37 | | - ref: "" |
38 | | - test-infra-repository: pytorch/test-infra |
39 | | - test-infra-ref: main |
40 | | - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
41 | | - pre-script: packaging/pre_build_script.sh |
42 | | - post-script: packaging/post_build_script.sh |
43 | | - smoke-test-script: packaging/fake_smoke_test.py |
44 | | - package-name: torchcodec |
45 | | - trigger-event: ${{ github.event_name }} |
46 | | - build-platform: "python-build-package" |
47 | | - build-command: "BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 ENABLE_CUDA=1 python -m build --wheel -vvv --no-isolation" |
| 16 | +# jobs: |
| 17 | +# generate-matrix: |
| 18 | +# uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 19 | +# with: |
| 20 | +# package-type: wheel |
| 21 | +# os: linux |
| 22 | +# test-infra-repository: pytorch/test-infra |
| 23 | +# test-infra-ref: main |
| 24 | +# with-cpu: disable |
| 25 | +# with-xpu: disable |
| 26 | +# with-rocm: disable |
| 27 | +# with-cuda: enable |
| 28 | +# build-python-only: "disable" |
| 29 | +# build: |
| 30 | +# needs: generate-matrix |
| 31 | +# strategy: |
| 32 | +# fail-fast: false |
| 33 | +# name: Build and Upload wheel |
| 34 | +# uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main |
| 35 | +# with: |
| 36 | +# repository: pytorch/torchcodec |
| 37 | +# ref: "" |
| 38 | +# test-infra-repository: pytorch/test-infra |
| 39 | +# test-infra-ref: main |
| 40 | +# build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
| 41 | +# pre-script: packaging/pre_build_script.sh |
| 42 | +# post-script: packaging/post_build_script.sh |
| 43 | +# smoke-test-script: packaging/fake_smoke_test.py |
| 44 | +# package-name: torchcodec |
| 45 | +# trigger-event: ${{ github.event_name }} |
| 46 | +# build-platform: "python-build-package" |
| 47 | +# build-command: "BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 ENABLE_CUDA=1 python -m build --wheel -vvv --no-isolation" |
48 | 48 |
|
49 | | - build-docs: |
50 | | - runs-on: linux.4xlarge.nvidia.gpu |
51 | | - strategy: |
52 | | - fail-fast: false |
53 | | - matrix: |
54 | | - # 3.9 corresponds to the minimum python version for which we build |
55 | | - # the wheel unless the label cliflow/binaries/all is present in the |
56 | | - # PR. |
57 | | - python-version: ['3.9'] |
58 | | - cuda-version: ['12.6'] |
59 | | - ffmpeg-version-for-tests: ['7'] |
60 | | - container: |
61 | | - image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}" |
62 | | - options: "--gpus all -e NVIDIA_DRIVER_CAPABILITIES=video,compute,utility" |
63 | | - needs: build |
64 | | - steps: |
65 | | - - name: Setup env vars |
66 | | - run: | |
67 | | - cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g') |
68 | | - echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV |
69 | | - python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g') |
70 | | - echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV |
71 | | - - uses: actions/download-artifact@v4 |
72 | | - with: |
73 | | - name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 |
74 | | - path: pytorch/torchcodec/dist/ |
75 | | - - name: Setup miniconda using test-infra |
76 | | - uses: pytorch/test-infra/.github/actions/setup-miniconda@main |
77 | | - with: |
78 | | - python-version: ${{ matrix.python-version }} |
79 | | - # We install conda packages at the start because otherwise conda may have conflicts with dependencies. |
80 | | - default-packages: "nvidia/label/cuda-${{ matrix.cuda-version }}.0::libnpp nvidia::cuda-nvrtc=${{ matrix.cuda-version }} nvidia::cuda-toolkit=${{ matrix.cuda-version }} nvidia::cuda-cudart=${{ matrix.cuda-version }} nvidia::cuda-driver-dev=${{ matrix.cuda-version }} conda-forge::ffmpeg=${{ matrix.ffmpeg-version-for-tests }}" |
81 | | - - name: Check env |
82 | | - run: | |
83 | | - ${CONDA_RUN} env |
84 | | - ${CONDA_RUN} conda info |
85 | | - ${CONDA_RUN} nvidia-smi |
86 | | - ${CONDA_RUN} conda list |
87 | | - - name: Assert ffmpeg exists |
88 | | - run: | |
89 | | - ${CONDA_RUN} ffmpeg -buildconf |
90 | | - - name: Update pip |
91 | | - run: ${CONDA_RUN} python -m pip install --upgrade pip |
92 | | - - name: Install PyTorch |
93 | | - run: | |
94 | | - ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} |
95 | | - ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' |
96 | | - - name: Install torchcodec from the wheel |
97 | | - run: | |
98 | | - wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"` |
99 | | - echo Installing $wheel_path |
100 | | - ${CONDA_RUN} python -m pip install $wheel_path -vvv |
| 49 | +# build-docs: |
| 50 | +# runs-on: linux.4xlarge.nvidia.gpu |
| 51 | +# strategy: |
| 52 | +# fail-fast: false |
| 53 | +# matrix: |
| 54 | +# # 3.9 corresponds to the minimum python version for which we build |
| 55 | +# # the wheel unless the label cliflow/binaries/all is present in the |
| 56 | +# # PR. |
| 57 | +# python-version: ['3.9'] |
| 58 | +# cuda-version: ['12.6'] |
| 59 | +# ffmpeg-version-for-tests: ['7'] |
| 60 | +# container: |
| 61 | +# image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}" |
| 62 | +# options: "--gpus all -e NVIDIA_DRIVER_CAPABILITIES=video,compute,utility" |
| 63 | +# needs: build |
| 64 | +# steps: |
| 65 | +# - name: Setup env vars |
| 66 | +# run: | |
| 67 | +# cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g') |
| 68 | +# echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV |
| 69 | +# python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g') |
| 70 | +# echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV |
| 71 | +# - uses: actions/download-artifact@v4 |
| 72 | +# with: |
| 73 | +# name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 |
| 74 | +# path: pytorch/torchcodec/dist/ |
| 75 | +# - name: Setup miniconda using test-infra |
| 76 | +# uses: pytorch/test-infra/.github/actions/setup-miniconda@main |
| 77 | +# with: |
| 78 | +# python-version: ${{ matrix.python-version }} |
| 79 | +# # We install conda packages at the start because otherwise conda may have conflicts with dependencies. |
| 80 | +# default-packages: "nvidia/label/cuda-${{ matrix.cuda-version }}.0::libnpp nvidia::cuda-nvrtc=${{ matrix.cuda-version }} nvidia::cuda-toolkit=${{ matrix.cuda-version }} nvidia::cuda-cudart=${{ matrix.cuda-version }} nvidia::cuda-driver-dev=${{ matrix.cuda-version }} conda-forge::ffmpeg=${{ matrix.ffmpeg-version-for-tests }}" |
| 81 | +# - name: Check env |
| 82 | +# run: | |
| 83 | +# ${CONDA_RUN} env |
| 84 | +# ${CONDA_RUN} conda info |
| 85 | +# ${CONDA_RUN} nvidia-smi |
| 86 | +# ${CONDA_RUN} conda list |
| 87 | +# - name: Assert ffmpeg exists |
| 88 | +# run: | |
| 89 | +# ${CONDA_RUN} ffmpeg -buildconf |
| 90 | +# - name: Update pip |
| 91 | +# run: ${CONDA_RUN} python -m pip install --upgrade pip |
| 92 | +# - name: Install PyTorch |
| 93 | +# run: | |
| 94 | +# ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} |
| 95 | +# ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' |
| 96 | +# - name: Install torchcodec from the wheel |
| 97 | +# run: | |
| 98 | +# wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"` |
| 99 | +# echo Installing $wheel_path |
| 100 | +# ${CONDA_RUN} python -m pip install $wheel_path -vvv |
101 | 101 |
|
102 | | - - name: Check out repo |
103 | | - uses: actions/checkout@v3 |
| 102 | +# - name: Check out repo |
| 103 | +# uses: actions/checkout@v3 |
104 | 104 |
|
105 | | - - name: Install doc dependencies |
106 | | - run: | |
107 | | - cd docs |
108 | | - ${CONDA_RUN} python -m pip install -r requirements.txt |
109 | | - - name: Build docs |
110 | | - run: | |
111 | | - cd docs |
112 | | - ${CONDA_RUN} make html |
113 | | - - uses: actions/upload-artifact@v4 |
114 | | - with: |
115 | | - name: Built-Docs |
116 | | - path: docs/build/html/ |
| 105 | +# - name: Install doc dependencies |
| 106 | +# run: | |
| 107 | +# cd docs |
| 108 | +# ${CONDA_RUN} python -m pip install -r requirements.txt |
| 109 | +# - name: Build docs |
| 110 | +# run: | |
| 111 | +# cd docs |
| 112 | +# ${CONDA_RUN} make html |
| 113 | +# - uses: actions/upload-artifact@v4 |
| 114 | +# with: |
| 115 | +# name: Built-Docs |
| 116 | +# path: docs/build/html/ |
0 commit comments