-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (39 loc) · 1.18 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to build'
required: true
default: 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.12]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pybind11==2.11.0 pybind11-global==2.11.0 wheel
- name: Configure CMake
run: cmake -S . -B build -DPYBIND11_PYTHON_VERSION=${{ matrix.python-version }}
- name: Build
run: cmake --build build --config Release
- name: Build Python Wheel
run: |
python setup.py bdist_wheel
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: python-wheel-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl