mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Compare commits
2 Commits
v0.30.0
...
60939d010c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60939d010c | ||
|
|
fdcd2923fd |
@@ -17,6 +17,8 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Build Python package
|
- name: Build Python package
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
env:
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: ${{ inputs.macos-target }}
|
||||||
run: |
|
run: |
|
||||||
pip install build
|
pip install build
|
||||||
python setup.py clean --all
|
python setup.py clean --all
|
||||||
@@ -25,6 +27,8 @@ runs:
|
|||||||
- name: Build backend package
|
- name: Build backend package
|
||||||
if: ${{ inputs.build-backend }}
|
if: ${{ inputs.build-backend }}
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
env:
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: ${{ inputs.macos-target }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py clean --all
|
python setup.py clean --all
|
||||||
MLX_BUILD_STAGE=2 python -m build -w
|
MLX_BUILD_STAGE=2 python -m build -w
|
||||||
|
|||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
build_documentation:
|
build_documentation:
|
||||||
if: github.repository == 'ml-explore/mlx'
|
if: github.repository == 'ml-explore/mlx'
|
||||||
runs-on: [self-hosted, macos]
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: ./.github/actions/build-docs
|
- uses: ./.github/actions/build-docs
|
||||||
@@ -65,14 +65,14 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
overwrite: true
|
overwrite: true
|
||||||
name: linux-wheels-${{ matrix.python_version }}
|
name: linux-wheels-${{ matrix.python_version }}-${{ matrix.arch }}
|
||||||
path: wheelhouse/mlx-*.whl
|
path: wheelhouse/mlx-*.whl
|
||||||
- name: Upload CPU artifacts
|
- name: Upload CPU artifacts
|
||||||
if: matrix.python_version == '3.10'
|
if: matrix.python_version == '3.10'
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
overwrite: true
|
overwrite: true
|
||||||
name: mlx-cpu
|
name: mlx-cpu-${{ matrix.arch }}
|
||||||
path: wheelhouse/mlx_cpu-*.whl
|
path: wheelhouse/mlx_cpu-*.whl
|
||||||
|
|
||||||
build_mac_release:
|
build_mac_release:
|
||||||
@@ -208,7 +208,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v6
|
- uses: actions/download-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: mlx-cpu
|
pattern: mlx-cpu-*
|
||||||
|
merge-multiple: true
|
||||||
path: dist
|
path: dist
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R dist
|
run: ls -R dist
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -24,8 +24,8 @@ def get_version():
|
|||||||
if "#define MLX_VERSION_PATCH" in l:
|
if "#define MLX_VERSION_PATCH" in l:
|
||||||
patch = l.split()[-1]
|
patch = l.split()[-1]
|
||||||
version = f"{major}.{minor}.{patch}"
|
version = f"{major}.{minor}.{patch}"
|
||||||
pypi_release = os.environ.get("PYPI_RELEASE", False)
|
pypi_release = int(os.environ.get("PYPI_RELEASE", 0))
|
||||||
dev_release = os.environ.get("DEV_RELEASE", False)
|
dev_release = int(os.environ.get("DEV_RELEASE", 0))
|
||||||
if not pypi_release or dev_release:
|
if not pypi_release or dev_release:
|
||||||
today = datetime.date.today()
|
today = datetime.date.today()
|
||||||
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"
|
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"
|
||||||
|
|||||||
Reference in New Issue
Block a user