Skip to content

Change command

Change command #47

Workflow file for this run

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@v3
with:
name: pyvpmr
path: dist/*.tar.gz
build_wheels:
name: Wheels
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest,windows-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: Dependency
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: git mingw-w64-x86_64-cmake mingw-w64-x86_64-tbb mingw-w64-x86_64-gcc mingw-w64-x86_64-ninja mingw-w64-x86_64-gmp mingw-w64-x86_64-mpfr mingw-w64-x86_64-7zip mingw-w64-x86_64-python mingw-w64-x86_64-python-pip
- name: Install cibuilldwheel
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: |
pip install cibuildwheel==2.16.2
cibuildwheel --output-dir wheelhouse
- name: CI Build Wheel
if: matrix.os != 'windows-latest'
uses: pypa/[email protected]
- name: Upload
uses: actions/upload-artifact@v3
with:
name: pyvpmr
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@v4
with:
python-version: "3.10"
- uses: actions/download-artifact@v3
with:
name: pyvpmr
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}