-
Notifications
You must be signed in to change notification settings - Fork 31
58 lines (48 loc) · 1.52 KB
/
wheels.yml
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
55
56
57
58
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, windows-2022, macOS-14]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # needed for history/tags
# Enable emulation for aarch64
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
# Used to host cibuildwheel
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Get python_ics version
uses: mtkennerly/dunamai-action@v1
with:
env-var: PYTHON_ICS_VERSION
args: --format "v{base}-{commit}-{timestamp}"
- name: Print python_ics version
run: echo $PYTHON_ICS_VERSION
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.18.1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: python_ics-${{ matrix.os }}-${{ env.PYTHON_ICS_VERSION }}
path: ./wheelhouse/*.whl
if-no-files-found: error
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: python_ics-*
merge-multiple: true
path: ./wheelhouse/