Skip to content

Commit b43c07d

Browse files
atalmanfacebook-github-bot
authored andcommitted
Add conda python 3.11 builds (#1010)
Summary: Adding conda 3.11 builds Pull Request resolved: #1010 Reviewed By: malfet Differential Revision: D43257982 Pulled By: atalman fbshipit-source-id: b6e8f1c496844432be660308a17eb6dd47a37b42
1 parent cfcdf6e commit b43c07d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/_build_test_upload.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ jobs:
310310
- 3.8
311311
- 3.9
312312
- "3.10"
313+
- 3.11
313314
steps:
314315
- name: Checkout Source Repository
315316
uses: actions/checkout@v3
@@ -358,7 +359,12 @@ jobs:
358359
shell: bash -l {0}
359360
run: |
360361
source "${MINICONDA_INSTALL_PATH}/etc/profile.d/conda.sh"
361-
conda create -y -p "${CONDA_ENV_PATH}" python=${{ matrix.python-version }}
362+
363+
if [[ ${{ matrix.python-version }} = "3.11" ]]; then
364+
conda create -y -p "${CONDA_ENV_PATH}" python=3.8
365+
else
366+
conda create -y -p "${CONDA_ENV_PATH}" python=${{ matrix.python-version }}
367+
fi
362368
- name: Build TorchData for Conda
363369
shell: bash -l {0}
364370
env:
@@ -371,7 +377,12 @@ jobs:
371377
source "${MINICONDA_INSTALL_PATH}/etc/profile.d/conda.sh"
372378
fi
373379
conda activate "${CONDA_ENV_PATH}"
374-
conda install -yq conda-build -c conda-forge
380+
if [[ "${PYTHON_VERSION}" = "3.11" ]]; then
381+
conda install -yq conda-build -c malfet -c conda-forge
382+
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c malfet"
383+
else
384+
conda install -yq conda-build -c conda-forge
385+
fi
375386
packaging/build_conda.sh
376387
conda index ./conda-bld
377388
- name: Upload Conda Package to Github

0 commit comments

Comments
 (0)