Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/actions/setup-binary-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,25 @@ runs:
set -euxo pipefail
CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"

conda create \
--yes \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
conda-build=3.21 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
if [[ "${PYTHON_VERSION}" = "3.11" ]]; then
conda create \
--yes \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
else
conda create \
--yes \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
conda-build=3.21 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
fi
echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}"
echo "CONDA_RUN=conda run -p ${CONDA_ENV}" >> "${GITHUB_ENV}"
2 changes: 1 addition & 1 deletion .github/workflows/test_build_conda_linux_with_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- .github/actions/setup-binary-builds/action.yml
- .github/workflows/test_build_conda_linux.yml
- .github/workflows/build_conda_linux.yml
- .github/workflows/generate_binary_build_matrix.yml
# - .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_conda_linux_without_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_conda_linux.yml
- .github/workflows/build_conda_linux.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_conda_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_conda_m1.yml
- .github/workflows/build_conda_macos.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_conda_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_conda_macos.yml
- .github/workflows/build_conda_macos.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py

jobs:
generate-matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_conda_windows_without_cuda.yml
- .github/workflows/build_conda_windows.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test_build_wheels_linux_with_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
post-script: packaging/post_build_script.sh
smoke-test-script: test/smoke_test/smoke_test.py
package-name: torchaudio
- repository: pytorch/vision
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
smoke-test-script: test/smoke_test.py
package-name: torchvision
- repository: pytorch/torchrec
pre-script: ""
post-script: ""
smoke-test-script: ""
package-name: torchrec
#- repository: pytorch/vision
#- pre-script: packaging/pre_build_script.sh
#- post-script: packaging/post_build_script.sh
#- smoke-test-script: test/smoke_test.py
#- package-name: torchvision
# - repository: pytorch/torchrec
# pre-script: ""
# post-script: ""
# smoke-test-script: ""
# package-name: torchrec
uses: ./.github/workflows/build_wheels_linux.yml
name: ${{ matrix.repository }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_wheels_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_wheels_m1.yml
- .github/workflows/build_wheels_macos.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_wheels_macos.yml
- .github/workflows/build_wheels_macos.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_wheels_windows_with_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_wheels_windows_with_cuda.yml
- .github/workflows/build_wheels_windows.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- .github/workflows/test_build_wheels_windows_without_cuda.yml
- .github/workflows/build_wheels_windows.yml
- .github/workflows/generate_binary_build_matrix.yml
- tools/scripts/generate_binary_build_matrix.py
# - tools/scripts/generate_binary_build_matrix.py
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/generate_binary_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
mod = sys.modules[__name__]

PYTHON_ARCHES_DICT = {
"nightly": ["3.8", "3.9", "3.10"],
"nightly": ["3.10", "3.11"],
"test": ["3.7", "3.8", "3.9", "3.10"],
"release": ["3.7", "3.8", "3.9", "3.10"],
}
Expand Down