mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-09 21:29:02 +08:00
37 lines
891 B
YAML
37 lines
891 B
YAML
name: 'Build macOS release'
|
|
description: 'Build MLX releases macOS'
|
|
|
|
inputs:
|
|
macos-target:
|
|
description: 'macOS build target'
|
|
required: false
|
|
default: '15.0'
|
|
build-backend:
|
|
description: 'Build the backend mlx-metal package'
|
|
type: boolean
|
|
required: false
|
|
default: false
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Build Python package
|
|
shell: bash
|
|
env:
|
|
MACOSX_DEPLOYMENT_TARGET: ${{ inputs.macos-target }}
|
|
run: |
|
|
conda activate env
|
|
pip install build
|
|
python setup.py clean --all
|
|
MLX_BUILD_STAGE=1 python -m build -w
|
|
|
|
- name: Build backend package
|
|
if: ${{ inputs.build-backend }}
|
|
shell: bash
|
|
env:
|
|
MACOSX_DEPLOYMENT_TARGET: ${{ inputs.macos-target }}
|
|
run: |
|
|
conda activate env
|
|
python setup.py clean --all
|
|
MLX_BUILD_STAGE=2 python -m build -w
|