-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.22 KB
/
python-wheels.yml
File metadata and controls
54 lines (46 loc) · 1.22 KB
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
49
50
51
52
53
54
name: Build Python Wheels
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-wheels:
name: Build Python Wheels (${{ matrix.OS }})
strategy:
fail-fast: false
matrix:
OS: ["ubuntu-24.04", "windows-2022"]
runs-on: ${{ matrix.OS }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: true
- name: Build wheels
uses: pypa/cibuildwheel@v3.1.0
env:
CIBW_BUILD: "cp311-*"
CIBW_CONFIG_SETTINGS: "wheel.build-tag=${{ github.run_number }}"
with:
output-dir: wheelhouse
- name: List built wheels (verify build tag)
shell: bash
run: |
echo "Built wheels:"
ls -lh wheelhouse/*.whl || dir wheelhouse\*.whl
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheelhouse-${{ matrix.OS }}
path: wheelhouse/*.whl