Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Apple Silicon Support for TorchRL #1338

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
whole build in one step
  • Loading branch information
osalpekar committed Aug 31, 2023
commit 0ca1b99ab79ba8535577bd54c9f303990020093c
25 changes: 13 additions & 12 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,27 @@ jobs:
matrix:
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
steps:
- name: Create Conda Environment for Binary Build
- name: Checkout torchrl
uses: actions/checkout@v2
- name: Binary Build in Conda Environment
run: |
set -euxo pipefail
conda clean --all --quiet --yes
conda create \
--yes \
--quiet \
-n buildenv \
python="${{ matrix.python_version[0] }}"
python=${{ matrix.python_version[1] }}

- name: Checkout torchrl
uses: actions/checkout@v2
- name: Install PyTorch RC
run: |
conda run -p buildenv python3 -mpip install torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Build wheel
run: |
conda run -p buildenv export CC=clang CXX=clang++
conda run -p buildenv python3 -mpip install wheel
conda run -p buildenv BUILD_VERSION=0.1.1 python3 setup.py bdist_wheel
conda activate buildenv

# Install PyTorch RC
python3 -mpip install torch --extra-index-url https://download.pytorch.org/whl/cpu

# Build Wheel
export CC=clang CXX=clang++
python3 -mpip install wheel
BUILD_VERSION=0.1.1 python3 setup.py bdist_wheel
- name: Upload wheel for the test-wheel job
uses: actions/upload-artifact@v2
with:
Expand Down