diff --git a/.github/actions/build-macos/action.yml b/.github/actions/build-macos/action.yml index 067fb8d5a5..26dada9275 100644 --- a/.github/actions/build-macos/action.yml +++ b/.github/actions/build-macos/action.yml @@ -4,14 +4,12 @@ description: 'Build and test MLX on macOS' runs: using: "composite" steps: - - name: Install dependencies + - name: Build env: DEBUG: 1 CMAKE_ARGS: "-DCMAKE_COMPILE_WARNING_AS_ERROR=ON" shell: bash -l {0} run: | - pip install --upgrade pip - pip install cmake setuptools typing_extensions pip install -e . -v - name: Install tests dependencies diff --git a/.github/actions/setup-macos/action.yml b/.github/actions/setup-macos/action.yml index a108e686f4..7ccc8b7e06 100644 --- a/.github/actions/setup-macos/action.yml +++ b/.github/actions/setup-macos/action.yml @@ -18,7 +18,18 @@ runs: shell: bash run: xcodebuild -showComponent MetalToolchain - - uses: conda-incubator/setup-miniconda@v3 - with: - miniconda-version: "latest" - python-version: ${{ inputs.python-version }} + - name: Install Python + shell: sh + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + $HOME/.local/bin/uv venv --python ${{ inputs.python-version }} + source .venv/bin/activate + echo PATH=$PATH >> $GITHUB_ENV + # Search python packages in .venv + echo PYTHONPATH=`python -c 'import sys; print(sys.path[-1])'` >> $GITHUB_ENV + + - name: Install build dependencies + shell: sh + run: | + pip install --upgrade pip + pip install cmake setuptools typing_extensions