diff options
author | mayeut <mayeut@users.noreply.github.com> | 2022-02-27 11:22:36 +0100 |
---|---|---|
committer | mayeut <mayeut@users.noreply.github.com> | 2022-03-05 07:55:34 +0100 |
commit | 382641507a48ac8fead6b4ae6725f3245505664a (patch) | |
tree | 38f082289ba38ec32cb19e28b2042ef9429d7e51 /.github | |
parent | bcec9c338946a0285262921ab1da5847462021c3 (diff) | |
download | numpy-382641507a48ac8fead6b4ae6725f3245505664a.tar.gz |
BLD: move cibuildwheel configuration to `pyproject.toml` [wheel build]
This allows to share the configuration between GitHub Actions and Travis-CI.
This also allows to easily run cibuildwheel locally to debug build issues when they arise.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/wheels.yml | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 2e7caaa2c..a7689295a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -109,36 +109,11 @@ jobs: echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append refreshenv if: ${{ env.IS_32_BIT == 'true' }} + - name: Build wheels uses: pypa/cibuildwheel@v2.3.1 env: - NPY_USE_BLAS_ILP64: ${{ env.IS_32_BIT == 'true' && '0' || '1' }} CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} - CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 - CIBW_ENVIRONMENT_LINUX: CFLAGS='-std=c99 -fno-strict-aliasing' - LDFLAGS='-Wl,--strip-debug' - OPENBLAS64_=/usr/local - RUNNER_OS='Linux' - # MACOS linker doesn't support stripping symbols - CIBW_ENVIRONMENT_MACOS: CFLAGS='-std=c99 -fno-strict-aliasing' - OPENBLAS64_=/usr/local - CC=clang - CXX=clang++ - CIBW_ENVIRONMENT_WINDOWS: OPENBLAS64_=${{ env.IS_32_BIT == 'false' && 'openblas' || '' }} - OPENBLAS=${{ env.IS_32_BIT == 'true' && 'openblas' || '' }} - CFLAGS='${{ env.IS_32_BIT == 'true' && '-m32' || '' }}' - LDFLAGS='${{ env.IS_32_BIT == 'true' && '-m32' || '' }}' - # TODO: Add universal2 wheels, we need to fuse them manually - # instead of going through cibuildwheel - # This is because cibuildwheel tries to make a fat wheel - # https://github.com/multi-build/multibuild/blame/devel/README.rst#L541-L565 - # for more info - CIBW_ARCHS_MACOS: x86_64 arm64 - CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64" - CIBW_BUILD_VERBOSITY: 3 - CIBW_BEFORE_BUILD: bash {project}/tools/wheels/cibw_before_build.sh {project} - CIBW_BEFORE_TEST: pip install -r {project}/test_requirements.txt - CIBW_TEST_COMMAND: bash {project}/tools/wheels/cibw_test_command.sh {project} - uses: actions/upload-artifact@v2 with: |