fix windows #134
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: Build Wheels | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| - "*/*" | |
| - "**" | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build_sdist: | |
| name: Build source | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build source and wheel | |
| run: | | |
| python -m pip install --upgrade pip build | |
| python -m build --outdir=wheelhouse | |
| - name: Upload sdist and wheel to github | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-sdist | |
| path: wheelhouse/* | |
| if-no-files-found: error | |
| build_wheels: | |
| name: Building wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Cache cibuildwheel | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/cibuildwheel | |
| ~/Library/Caches/cibuildwheel | |
| C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache | |
| key: cibuildwheel-${{ runner.os }} | |
| - name: Install virtualenv | |
| run: python -m pip install virtualenv | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v2.21 | |
| env: | |
| CIBW_SKIP: "pp38-*" | |
| CIBW_BUILD_VERBOSITY: 1 | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cibw-wheels-${{ matrix.os }} | |
| path: wheelhouse/*.whl |