mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-09 21:29:02 +08:00
* Remove unnecessary steps * Use ccache * Log when using ccache * Set max-size to 1GB * Pass --no-build-isolation * Remove more unused things
26 lines
637 B
YAML
26 lines
637 B
YAML
name: 'Build and Test on Linux'
|
|
description: 'Build and test MLX on Linux'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Python package
|
|
shell: sh
|
|
env:
|
|
CMAKE_ARGS: "-DCMAKE_COMPILE_WARNING_AS_ERROR=ON"
|
|
DEBUG: 1
|
|
run: pip install --no-build-isolation -e ".[dev]" -v
|
|
|
|
- name: Generate package stubs
|
|
shell: sh
|
|
run: |
|
|
pip install typing_extensions
|
|
python setup.py generate_stubs
|
|
|
|
- name: Build CPP only
|
|
shell: bash
|
|
run: |
|
|
mkdir -p build && cd build
|
|
cmake .. -DMLX_BUILD_METAL=OFF -DCMAKE_BUILD_TYPE=DEBUG
|
|
make -j $(nproc)
|