Unverified Commit 72e076eb authored by Andrey Talman's avatar Andrey Talman Committed by GitHub
Browse files

Fix anaconda upload step (#6422)

parent e8f7600a
...@@ -42,9 +42,7 @@ jobs: ...@@ -42,9 +42,7 @@ jobs:
ENV_NAME: conda-env-${{ github.run_id }} ENV_NAME: conda-env-${{ github.run_id }}
PY_VERS: ${{ matrix.py_vers }} PY_VERS: ${{ matrix.py_vers }}
run: | run: |
. ~/miniconda3/etc/profile.d/conda.sh
# Needed for JPEG library detection as setup.py detects conda presence by running `shutil.which('conda')` # Needed for JPEG library detection as setup.py detects conda presence by running `shutil.which('conda')`
export PATH=~/miniconda3/bin:$PATH
set -ex set -ex
. packaging/pkg_helpers.bash . packaging/pkg_helpers.bash
# if we are uploading to test channell, our version consist only of the base: 0.x.x - no date string or suffix added # if we are uploading to test channell, our version consist only of the base: 0.x.x - no date string or suffix added
...@@ -67,7 +65,6 @@ jobs: ...@@ -67,7 +65,6 @@ jobs:
ENV_NAME: conda-test-env-${{ github.run_id }} ENV_NAME: conda-test-env-${{ github.run_id }}
PY_VERS: ${{ matrix.py_vers }} PY_VERS: ${{ matrix.py_vers }}
run: | run: |
. ~/miniconda3/etc/profile.d/conda.sh
set -ex set -ex
conda create -yp ${ENV_NAME} python=${PY_VERS} numpy conda create -yp ${ENV_NAME} python=${PY_VERS} numpy
conda run -p ${ENV_NAME} python3 -mpip install torch --pre --extra-index-url=https://download.pytorch.org/whl/${CHANNEL} conda run -p ${ENV_NAME} python3 -mpip install torch --pre --extra-index-url=https://download.pytorch.org/whl/${CHANNEL}
...@@ -115,7 +112,6 @@ jobs: ...@@ -115,7 +112,6 @@ jobs:
- name: Install conda-build and purge previous artifacts - name: Install conda-build and purge previous artifacts
shell: arch -arch arm64 bash {0} shell: arch -arch arm64 bash {0}
run: | run: |
. ~/miniconda3/etc/profile.d/conda.sh
conda install -yq conda-build conda install -yq conda-build
conda build purge-all conda build purge-all
...@@ -126,7 +122,6 @@ jobs: ...@@ -126,7 +122,6 @@ jobs:
PYTHON_VERSION: ${{ matrix.py_vers }} PYTHON_VERSION: ${{ matrix.py_vers }}
CU_VERSION: cpu CU_VERSION: cpu
run: | run: |
. ~/miniconda3/etc/profile.d/conda.sh
set -ex set -ex
. packaging/pkg_helpers.bash . packaging/pkg_helpers.bash
...@@ -156,7 +151,7 @@ jobs: ...@@ -156,7 +151,7 @@ jobs:
env: env:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
run: | run: |
. ~/miniconda3/etc/profile.d/conda.sh
conda install -yq anaconda-client conda install -yq anaconda-client
set -x set -x
~/miniconda3/bin/anaconda -t "${CONDA_PYTORCHBOT_TOKEN}" upload ~/miniconda3/conda-bld/osx-arm64/*.tar.bz2 -u "pytorch-${CHANNEL}" --label main --no-progress --force export ANACONDA_PATH=$(conda info --base)/bin
$ANACONDA_PATH/anaconda -t "${CONDA_PYTORCHBOT_TOKEN}" upload ~/miniconda3/conda-bld/osx-arm64/*.tar.bz2 -u "pytorch-${CHANNEL}" --label main --no-progress --force
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment