From 0cf1ec305c4d8c8f0732a38eb604fa84e2d40bf1 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 1 Aug 2024 16:20:44 +0100 Subject: [PATCH] mod build.yml --- .github/workflows/build.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c98e2d3..87b2378 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,23 +91,24 @@ jobs: python -m pip install certifi cibuildwheel python -m pip install -r requirements.txt - # - name: Build MacOS wheel - # if: matrix.os == 'macos-latest' - # env: - # CIBW_BUILD: "cp311-macosx_x86_64" # cp38-macosx_x86_64 cp311-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64 cp312-macosx_x86_64" - # CIBW_BEFORE_ALL: brew install libomp - # CIBW_BEFORE_BUILD_MACOS: | - # python -m pip install --upgrade pip - # python -m pip install certifi cibuildwheel - # python -m pip install -r requirements.txt - # run: python -m cibuildwheel --platform macos --output-dir dist + - name: Build MacOS wheel + if: matrix.os == 'macos-latest' + env: + CIBW_BUILD: "cp37-macosx_x86_64 cp38-macosx_x86_64 cp311-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64 cp312-macosx_x86_64" + CIBW_BEFORE_ALL: brew install libomp + CIBW_BEFORE_BUILD_MACOS: | + python -m pip install -U pip + python -m pip install certifi cibuildwheel + python -m pip install -r requirements.txt + + run: python -m cibuildwheel --platform macos --output-dir dist - name: Build linux wheels if: matrix.os == 'ubuntu-latest' env: - CIBW_BUILD: "cp37-manylinux_x86_64" # cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 " + CIBW_BUILD: "cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64" CIBW_BEFORE_BUILD_LINUX: | - python -m pip install --upgrade pip + python -m pip install -U pip python -m pip install certifi cibuildwheel python -m pip install -r requirements.txt