Skip to content

[bugfix] win10 msvc142 vs2019 std::min error with windows.h (#519) #15

[bugfix] win10 msvc142 vs2019 std::min error with windows.h (#519)

[bugfix] win10 msvc142 vs2019 std::min error with windows.h (#519) #15

Workflow file for this run

name: Pip4Mac
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest]
python-version: ["3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update requirements
run: |
python -m pip install --upgrade pip
pip install pybind11 setuptools wheel twine
- name: Build and install for mac
run: |
cd python
python setup.py build
python setup.py bdist_wheel
- name: Upload to pypi when release
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PYCGRAPH_TOKEN }}
run: |
cd python
twine check dist/*
twine upload --verbose --skip-existing dist/*