Attempting to make wheels part of the repo #32
Workflow file for this run
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # macos-13 is an intel runner, macos-14 is apple silicon | |
| # os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14] | |
| os: [macos-14] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Intermediate | |
| run: git branch -a | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v2.23.3 | |
| # env: | |
| # CIBW_SOME_OPTION: value | |
| # ... | |
| # with: | |
| # package-dir: . | |
| # output-dir: wheelhouse | |
| # config-file: "{package}/pyproject.toml" | |
| # - uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
| # path: wheelhouse/*.whl | |
| # # https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions | |
| # - name: Extract branch name | |
| # shell: bash | |
| # run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
| # id: extract_branch | |
| - name: Intermediate | |
| run: git branch -a | |
| - name: Commit | |
| run: | | |
| git config --global user.name 'Wheel bot' | |
| git config --global user.email '<>' | |
| git add wheelhouse/*.whl | |
| git commit -m "Bot: Add built wheels" | |
| git push |