From 11a3bce5cde9e34d5c4d932d17ad6e3cb3b72b2f Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Mon, 11 Mar 2024 19:23:17 -0500 Subject: [PATCH] new cibuildwheel --- .github/workflows/build.yml | 47 +++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fd694c..1faf9a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,39 +2,36 @@ name: Build on: workflow_dispatch: - release: - types: - - published + # release: + # types: + # - published jobs: build_wheels: - name: Wheels on ${{ matrix.os }} + name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, macos-11, windows-2019] + # macos-13 is an intel runner, macos-14 is apple silicon + os: [ubuntu-latest, windows-latest, macos-13, macos-14] steps: - - uses: actions/checkout@v3 - with: - submodules: true - - # - name: install libomp on macOS - # shell: bash - # if: runner.os == 'macOS' - # run: | - # HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew reinstall --build-from-source --formula ./.github/workflows/libomp.rb - - - name: Build wheels - uses: pypa/cibuildwheel@v2.9.0 - - - name: Show files - run: ls -lh wheelhouse - shell: bash - - - uses: actions/upload-artifact@v3 - with: - path: ./wheelhouse/*.whl + - uses: actions/checkout@v4 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.17.0 + # env: + # CIBW_SOME_OPTION: value + # ... + # with: + # package-dir: . + # output-dir: wheelhouse + # config-file: "{package}/pyproject.toml" + + - uses: actions/upload-artifact@v4 + with: + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} + path: ./wheelhouse/*.whl build_sdist: name: Build source distribution