[bugfix] win10 msvc142 vs2019 std::min error with windows.h (#519) #15
This file contains hidden or 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: 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/* |