Add link #159
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: Wheels | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_sdist: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
run: | | |
git submodule update --init --recursive | |
cd eigen && git apply ../patch_size.patch && cd .. | |
- name: Build | |
run: pipx run build --sdist | |
- name: Check | |
run: pipx run twine check dist/* | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pyvpmr-sdist | |
path: dist/*.tar.gz | |
build_wheels: | |
name: Wheels | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-24.04 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
run: | | |
git submodule update --init --recursive | |
cd eigen && git apply ../patch_size.patch && cd .. | |
- name: CI Build Wheel | |
uses: pypa/[email protected] | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pyvpmr-${{ matrix.os }} | |
path: wheelhouse/*.whl | |
upload_all: | |
name: Upload | |
needs: [ build_wheels, build_sdist ] | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[publish]') | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: pyvpmr* | |
path: dist | |
merge-multiple: true | |
- uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI }} |