mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-08 20:39:00 +08:00
Some checks failed
Build and Test / check_lint (push) Has been cancelled
Build and Test / linux_build_and_test (ubuntu-22.04) (push) Has been cancelled
Build and Test / linux_build_and_test (ubuntu-22.04-arm) (push) Has been cancelled
Build and Test / mac_build_and_test (14.0) (push) Has been cancelled
Build and Test / mac_build_and_test (15.0) (push) Has been cancelled
Build and Test / cuda_build_and_test (cuda-12.6) (push) Has been cancelled
Build and Test / cuda_build_and_test (cuda-12.9) (push) Has been cancelled
Build and Test / build_documentation (push) Has been cancelled
Build and Test / Linux Fedora CPP Build (aarch64) (push) Has been cancelled
Build and Test / Linux Fedora CPP Build (x86_64) (push) Has been cancelled
104 lines
2.5 KiB
YAML
104 lines
2.5 KiB
YAML
name: Build and Test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
# For testing CI without starting a pull request:
|
|
- test/*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/head/main' }}
|
|
|
|
jobs:
|
|
check_lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: pre-commit/action@v3.0.1
|
|
|
|
linux_build_and_test:
|
|
needs: check_lint
|
|
strategy:
|
|
matrix:
|
|
runner:
|
|
- ubuntu-22.04
|
|
- ubuntu-22.04-arm
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.runner }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/setup-linux
|
|
- uses: ./.github/actions/build-linux
|
|
- uses: ./.github/actions/test-linux
|
|
with:
|
|
cpu-only: true
|
|
|
|
mac_build_and_test:
|
|
if: github.repository == 'ml-explore/mlx'
|
|
strategy:
|
|
matrix:
|
|
macos-target: ["14.0", "15.0"]
|
|
runs-on: [self-hosted, macos]
|
|
env:
|
|
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
|
|
needs: check_lint
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/setup-macos
|
|
- uses: ./.github/actions/build-macos
|
|
|
|
cuda_build_and_test:
|
|
if: github.repository == 'ml-explore/mlx'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
toolkit: ['cuda-12.6', 'cuda-12.9']
|
|
runs-on: gpu-t4-4-core
|
|
needs: check_lint
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/setup-linux
|
|
with:
|
|
toolkit: ${{ matrix.toolkit }}
|
|
- uses: ./.github/actions/build-cuda
|
|
with:
|
|
toolkit: ${{ matrix.toolkit }}
|
|
- uses: ./.github/actions/test-linux
|
|
|
|
build_documentation:
|
|
if: github.repository == 'ml-explore/mlx'
|
|
runs-on: ubuntu-22.04
|
|
needs: check_lint
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/build-docs
|
|
|
|
linux_fedora_build_cpp:
|
|
name: Linux Fedora CPP Build (${{ matrix.arch }})
|
|
needs: check_lint
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- host: ubuntu-22.04
|
|
arch: x86_64
|
|
- host: ubuntu-22.04-arm
|
|
arch: aarch64
|
|
|
|
runs-on: ${{ matrix.host }}
|
|
container:
|
|
image: fedora:42
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: CPP Build Test - No Release
|
|
run: |
|
|
bash ./.github/scripts/setup+build-cpp-linux-fedora-container.sh
|