Repository navigation
release v0.0.1 #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust CI MacOS | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| # MLX only builds on Apple Silicon; macos-14+ runners are arm64. | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| # Cache the CMake build of mlx-c + MLX, which is the slow part of the build. | |
| - name: Cache cargo & build artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Test | |
| run: make test |