-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to numpy error on python 3.10 in macosx x64
The CI build will skip the test at this time
- Loading branch information
Showing
10 changed files
with
110 additions
and
220 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
env: | ||
CIBW_TEST_COMMAND: python {project}/src/python/test.py | ||
CIBW_TEST_REQUIRES: numpy | ||
|
||
CIBW_TEST_SKIP: cp310-macosx_x86_64 | ||
|
||
jobs: | ||
build_sdist: | ||
|
@@ -51,87 +51,31 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Install libomp for macos | ||
- name: Install libomp and openblas for macos | ||
if: matrix.os == 'macos-latest' | ||
run: brew install libomp | ||
|
||
- uses: actions/setup-python@v2 | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==1.10.0 | ||
run: | | ||
brew install libomp | ||
brew install openblas | ||
- name: Build wheel | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
uses: pypa/cibuildwheel@v2.1.1 | ||
env: | ||
# Python 2.7 on Windows requires a workaround for C++11 support, | ||
# built separately below | ||
CIBW_SKIP: pp* cp27-win* cp35-* *-win32 *-manylinux_i686 | ||
CIBW_SKIP: pp* cp27* *-win32 *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x | ||
|
||
- name: Show files | ||
run: ls -lh wheelhouse | ||
shell: bash | ||
|
||
- name: Verify clean directory | ||
run: git diff --exit-code | ||
shell: bash | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
|
||
# Windows 2.7 (requires workaround for MSVC 2008 replacement) | ||
build_win27_wheels: | ||
name: Py 2.7 wheels on Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-python@v2 | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==1.10.0 | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Build 64-bit wheel | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
CIBW_BUILD: cp27-win_amd64 | ||
DISTUTILS_USE_SDK: 1 | ||
MSSdk: 1 | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: x86 | ||
|
||
- name: Build 32-bit wheel | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
CIBW_BUILD: cp27-win32 | ||
DISTUTILS_USE_SDK: 1 | ||
MSSdk: 1 | ||
|
||
- name: Show files | ||
run: ls -lh wheelhouse | ||
shell: bash | ||
|
||
- name: Verify clean directory | ||
run: git diff --exit-code | ||
shell: bash | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
|
||
upload_all: | ||
name: Upload if release | ||
needs: [build_wheels, build_win27_wheels, build_sdist] | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
if: github.event.inputs.upload != false | ||
|
||
|
@@ -143,7 +87,7 @@ jobs: | |
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected].1 | ||
- uses: pypa/[email protected].2 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.