Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
23 changes: 12 additions & 11 deletions .github/actions/build-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ inputs:
description: 'Whether to run tests'
required: false
default: 'true'
build-jit:
description: 'Whether to build with JIT'
required: false
default: 'true'

runs:
using: "composite"
Expand All @@ -28,9 +24,8 @@ runs:
DEBUG: 1
DEV_RELEASE: 1
run: |
uv pip install --upgrade pip cmake setuptools
uv pip install nanobind==2.4.0 \
numpy torch tensorflow unittest-xml-reporting
uv pip install --upgrade pip
uv pip install cmake setuptools nanobind==2.4.0
uv pip install -e . -v

- name: Generate package stubs
Expand All @@ -39,6 +34,12 @@ runs:
uv pip install typing_extensions
uv run --no-project setup.py generate_stubs

- name: Install tests dependencies
if: inputs.run-tests == 'true'
shell: sh
run: |
uv pip install numpy torch tensorflow unittest-xml-reporting

- name: Run Python tests
if: inputs.run-tests == 'true'
shell: bash
Expand All @@ -61,7 +62,7 @@ runs:
uv run --no-project test.py

- name: Build CPP only
if: inputs.build-type == 'debug'
if: inputs.run-tests == 'true'
shell: bash
run: |
mkdir -p build
Expand All @@ -70,7 +71,7 @@ runs:
make -j $(sysctl -n hw.ncpu)

- name: Run CPP tests
if: ${{ inputs.build-type == 'debug' && inputs.run-tests == 'true' }}
if: inputs.run-tests == 'true'
shell: bash
env:
DEVICE: gpu
Expand All @@ -79,7 +80,7 @@ runs:
run: ./build/tests/tests

- name: Build small binary with JIT
if: inputs.build-jit == 'true'
if: inputs.run-tests == 'true'
shell: bash
run: |
mkdir -p build
Expand All @@ -93,7 +94,7 @@ runs:
make -j $(sysctl -n hw.ncpu)

- name: Run Python tests with JIT
if: ${{ inputs.build-jit == 'true' && inputs.run-tests == 'true' }}
if: inputs.run-tests == 'true'
shell: bash
env:
LOW_MEMORY: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
if: github.repository == 'ml-explore/mlx'
strategy:
matrix:
python-version: ["3.10", "3.14"]
python-version: ["3.10", "3.13"]
env:
MACOSX_DEPLOYMENT_TARGET: "15.0"
runs-on: [self-hosted, macos]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
- uses: ./.github/actions/build-macos
with:
build-type: release
run-tests: false
- name: Upload MLX artifacts
uses: actions/upload-artifact@v5
with:
Expand Down