Fix version #65
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 wheel on osx | |
on: [push] | |
env: | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_TEST_REQUIRES: pytest | |
CIBW_TEST_COMMAND: "pytest --pyargs scrypt" | |
jobs: | |
build_osx_wheels: | |
name: Build wheels on macos-latest | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Used to host cibuildwheel | |
- uses: actions/setup-python@v5 | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel | |
- name: Install openssl | |
run: brew install [email protected] | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
# Disable explicitly building PyPy wheels | |
CFLAGS: "-I$(brew --prefix openssl)/include" | |
LDFLAGS: "-L$(brew --prefix openssl)/lib" | |
CIBW_SKIP: pp* | |
CIBW_PRERELEASE_PYTHONS: False | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: wheelhouse/*.whl | |
upload_pypi: | |
name: Upload to PyPI (prod) | |
needs: [build_osx_wheels] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: artifact | |
path: dist | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |