Updated version to 0.1.7.post2 #175
Workflow file for this run
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
name: Build | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-2022] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
submodules: 'recursive' | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
if: startsWith(matrix.os,'windows') | |
- name: Add Windows SDK | |
shell: cmd | |
if: startsWith(matrix.os,'windows') | |
run: | | |
choco install windows-sdk-8.1 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.12' | |
- name: Build wheels | |
env: | |
CIBW_BUILD: "cp3*" | |
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*" | |
CIBW_MANYLINUX_X86_64_IMAGE: "dockcross/manylinux2014-x64" | |
CIBW_TEST_REQUIRES: "pytest" | |
CIBW_TEST_COMMAND: "pytest {project}/tests" | |
CIBW_ENVIRONMENT_LINUX: CMAKE_GENERATOR="Unix Makefiles" | |
CIBW_ENVIRONMENT_MACOS: CMAKE_GENERATOR="Unix Makefiles" | |
CIBW_ENVIRONMENT_WINDOWS: CMAKE_GENERATOR="Visual Studio 17 2022" CMAKE_GENERATOR_PLATFORM=x64 | |
run: | | |
python -m pip install cibuildwheel build | |
python -m cibuildwheel --output-dir wheelhouse | |
- name: Build source | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
python -m build --sdist --outdir=wheelhouse | |
- name: Release to pypi | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} | |
run: | | |
python -m pip install --upgrade twine | |
twine upload wheelhouse/* | |
- name: Upload artifacts to github | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.os }} | |
path: ./wheelhouse | |
merge_artifacts: | |
name: Merge wheel artifacts from build_wheels OS matrix jobs | |
runs-on: ubuntu-latest | |
needs: build_wheels | |
steps: | |
- name: Merge artifacts | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: wheels | |
pattern: wheels-* | |
delete-merged: true |