Commit c2870b6e authored by Andrey Talman's avatar Andrey Talman Committed by Facebook GitHub Bot
Browse files

Switch to use conda install action for m1 builds (#2674)

Summary:
Usage setup-minicoda action for m1 build
We want to try to address space issues on m1. The following action:
```
pytorch/test-infra/.github/actions/setup-miniconda@main
```

Sets up miniconda in temp folder which should be cleaned between runs

Pull Request resolved: https://github.com/pytorch/audio/pull/2674

Reviewed By: jeanschmidt

Differential Revision: D39540481

Pulled By: atalman

fbshipit-source-id: 0596598ab6b2f99c775aa0c9e14a3a388533068d
parent b66a85ae
...@@ -35,6 +35,8 @@ jobs: ...@@ -35,6 +35,8 @@ jobs:
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }} if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: | run: |
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Setup miniconda
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
- name: Build TorchAudio M1 wheel - name: Build TorchAudio M1 wheel
shell: arch -arch arm64 bash {0} shell: arch -arch arm64 bash {0}
env: env:
...@@ -47,8 +49,6 @@ jobs: ...@@ -47,8 +49,6 @@ jobs:
# Needed so that delocate puts files in places it can actually modify # Needed so that delocate puts files in places it can actually modify
TMPDIR: ${{ runner.temp }} TMPDIR: ${{ runner.temp }}
run: | run: |
echo $PATH
. ~/miniconda3/etc/profile.d/conda.sh
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
...@@ -74,7 +74,6 @@ jobs: ...@@ -74,7 +74,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}
...@@ -118,6 +117,8 @@ jobs: ...@@ -118,6 +117,8 @@ jobs:
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }} if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: | run: |
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Setup miniconda
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
- 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: |
......
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