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

M1 conda binaries build support #3013

Merged
merged 26 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 21 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
38 changes: 38 additions & 0 deletions .github/workflows/regression_tests_cpu_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,41 @@ jobs:
- name: Validate Torchserve CPU Regression
run: |
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly

regression-cpu-nightly-binaries-macos-14:
# Job for macOS-14 with Python 3.10
runs-on: macos-14
strategy:
fail-fast: false
matrix:
binaries: ["pypi", "conda"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python for M1
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup conda with Python 3.10
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.10'
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Checkout TorchServe
uses: actions/checkout@v3
- name: Conda info
shell: bash -el {0}
run: conda info &&
python ts_scripts/install_dependencies.py --environment=dev &&
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
- name: Conda list
shell: pwsh
run: conda list
- run: conda --version
- run: python --version
2 changes: 1 addition & 1 deletion binaries/conda/build_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
PACKAGES = ["torchserve", "torch-model-archiver", "torch-workflow-archiver"]

# conda convert supported platforms https://docs.conda.io/projects/conda-build/en/stable/resources/commands/conda-convert.html
PLATFORMS = ["linux-64", "osx-64", "win-64"] # Add a new platform here
PLATFORMS = ["linux-64", "osx-64", "win-64", "osx-arm64"] # Add a new platform here

if os.name == "nt":
# Assumes miniconda is installed in windows
Expand Down
Loading