release(1.7.0): Adds named generic attributes #35
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: Build Wheels | |
| on: [push, workflow_dispatch] | |
| env: | |
| CIBW_SKIP: cp36-* cp37* cp38* pp* *-musllinux* | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{matrix.arch}} for ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| arch: aarch64 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up QEMU | |
| if: ${{ matrix.arch == 'aarch64' }} | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Install OpenSSL | |
| if: ${{ matrix.arch == 'aarch64' }} | |
| run: sudo apt-get update && sudo apt-get install -y libssl-dev cmake | |
| - name: Set OpenSSL path | |
| run: echo "OPENSSL_ROOT_DIR=/usr" >> $GITHUB_ENV | |
| - name: Setup cmake | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| # with: | |
| # cmake-version: '3.16.x' | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v2.22.0 | |
| # to supply options, put them in 'env', like: | |
| env: | |
| CIBW_BEFORE_BUILD: git submodule init && git submodule update && pip install "cmake>=3.30.2" && pip install cython numpy scikit-build | |
| CPPFLAGS: -I/usr/local/opt/zlib/include | |
| LDFLAGS: -L/usr/local/opt/zlib/lib | |
| CIBW_ARCHS_MACOS: "arm64" | |
| CIBW_ARCHS_LINUX: "aarch64" | |
| - name: Upload built wheels | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-wheels-${{ matrix.os }}-${{ matrix.arch }} | |
| path: ./wheelhouse/*.whl | |
| if-no-files-found: warn |