Skip to content

Changed vcpkg job

Changed vcpkg job #78

Workflow file for this run

name: Build and store wheels
on: [pull_request]
jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-15]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install vcpkg
uses: lukka/[email protected]
# Separate vcpkg installation procedure on Linux
if: runner.os != 'Linux'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.2
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
- name: Show obtained wheels and some debug info
run: |
ls ./dist
- name: Store wheels
uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*.whl
publish:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/mini-face-oxidized
permissions:
id-token: write
steps:
- name: Download all the wheels
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1