Issue #11 try to build wheel on cp311 #78
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
on: push | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-ver: [3.7, 3.8, 3.9, '3.10', '3.11'] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
experimental: [false] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-ver }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel twine auditwheel | |
- name: Add msbuild to PATH | |
if: matrix.os == 'windows-latest' | |
uses: microsoft/[email protected] | |
- name: build Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
mkdir build | |
mkdir install | |
cd build | |
cmake -G "Visual Studio 17 2022" -A x64 -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=../install .. | |
cmake --build . | |
cd ../ | |
python.exe setup.py sdist bdist_wheel --plat-name win_amd64 | |
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing | |
rm -r build | |
rm -r install | |
- name: build ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
mkdir build | |
cd build | |
cmake -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF .. | |
make | |
cd .. | |
python setup.py sdist bdist_wheel | |