forked from novatel/novatel_edie
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.68 KB
/
python.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
59
name: Python
on:
push:
paths-ignore:
- '**.md'
- '.gitignore'
- 'resources/**'
pull_request:
paths-ignore:
- '**.md'
- '.gitignore'
- 'resources/**'
workflow_dispatch:
jobs:
python:
name: Python - ${{ matrix.platform[0] }} - ${{ matrix.platform[2] }}
runs-on: ${{ matrix.platform[1] }}
strategy:
fail-fast: false
matrix:
platform:
- [Linux, ubuntu-latest, x86_64]
- [Linux, ubuntu-latest, i686]
- [Windows, windows-latest, AMD64]
- [Windows, windows-latest, x86]
- [Windows, windows-latest, ARM64]
- [MacOS, macos-latest, x86_64]
- [MacOS, macos-latest, arm64]
# spdlog fails to build with the correct architecture on universal2
# - [MacOS, macos-latest, universal2]
# aarch64 with QEMU likely works, but builds 10x slower than the rest
# - [Linux, ubuntu-latest, aarch64]
# ppc64le is too obscure and slow to build due to emulation
# - [Linux, ubuntu-latest, ppc64le]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install cibuildwheel
run: python -m pip install --upgrade cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: ${{ matrix.platform[2] }}
CIBW_BUILD: cp39* cp312*
CIBW_SKIP: "*-musllinux*"
- name: Inspect
run: ls wheelhouse/