Skip to content

Commit cf595ea

Browse files
tanquerfacebook-github-bot
authored andcommitted
Fix doc build (meta-pytorch#15)
Summary: Pull Request resolved: meta-pytorch#15 Differential Revision: D85487438
1 parent 06b1862 commit cf595ea

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/docs.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,26 @@ jobs:
3535
which conda
3636
- name: Update pip
3737
shell: bash -l {0}
38-
run: python -m pip install --upgrade pip
39-
- name: Install pytorch
40-
shell: bash -l {0}
41-
run: pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
38+
run:
4239
- name: Install Dependencies
4340
shell: bash -l {0}
4441
run: |
4542
set -eux
43+
conda create -n venv python=3.12 -y
44+
conda activate venv
45+
46+
python -m pip install --upgrade pip
47+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
48+
4649
conda install -y git
4750
conda install -y -c conda-forge glog==0.4.0 gflags fmt
4851
pip install cmake
4952
pip install -r docs/requirements.txt
50-
export USE_NCCL=0
5153
export USE_NCCLX=0
5254
export USE_SYSTEM_LIBS=1
53-
pip install .[dev] -v
55+
pip install --no-build-isolation .[dev] -v
56+
57+
conda deactivate
5458
- name: Build Sphinx Docs
5559
shell: bash -l {0}
5660
working-directory: docs

0 commit comments

Comments
 (0)