13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- os : [ubuntu-22.04, windows-latest, macos-13]
16
+ include :
17
+ - os : " ubuntu-22.04"
18
+ arch : " x86_64"
19
+ - os : " ubuntu-22.04"
20
+ arch : " aarch64"
21
+ - os : " macos-13"
22
+ arch : " x86_64"
23
+ macosx_deployment_target : " 13.0"
24
+ - os : " macos-14"
25
+ arch : " arm64"
26
+ macosx_deployment_target : " 14.0"
27
+ - os : " windows-latest"
28
+ arch : " auto64"
29
+ triplet : " x64-windows"
30
+ - os : " windows-latest"
31
+ arch : " auto32"
32
+ triplet : " x86-windows"
17
33
18
34
steps :
19
35
- uses : actions/checkout@v4
36
52
env :
37
53
# configure cibuildwheel to build native archs ('auto'), and some
38
54
# emulated ones, plus cross-compile on macos
39
- CIBW_ARCHS_LINUX : auto
40
- CIBW_ARCHS_MACOS : auto arm64
55
+ CIBW_ARCHS : ${{ matrix.arch }}
41
56
CIBW_TEST_SKIP : " *_arm64 *universal2:arm64 *linux_i686"
42
- CIBW_ARCHS_WINDOWS : auto64
43
57
CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
44
58
CIBW_MANYLINUX_I686_IMAGE : manylinux2010
45
59
CIBW_BUILD : cp38-* cp39-* cp310-* cp311-* cp312-*
@@ -48,18 +62,18 @@ jobs:
48
62
yum -y update && yum -y install epel-release && yum install -y re2-devel ninja-build
49
63
CIBW_BEFORE_ALL_MACOS : >
50
64
brew install re2 pybind11
51
- # macos target should be 10.14 to get c++17
52
- CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=13.0
65
+ # macos target should be at least 10.13 to get full c++17
66
+ CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=${{ matrix.macosx_deployment_target }}
53
67
CIBW_BEFORE_ALL_WINDOWS : >
54
- vcpkg install pkgconf re2:x64-windows
68
+ vcpkg install pkgconf:${{ matrix.triplet }} re2:${{ matrix.triplet }}
55
69
&& vcpkg integrate install
56
70
CIBW_ENVIRONMENT_WINDOWS : ' CMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake'
57
71
CIBW_TEST_REQUIRES : " "
58
72
CIBW_TEST_COMMAND : " "
59
73
60
74
- uses : actions/upload-artifact@v4
61
75
with :
62
- name : wheels-${{ matrix.os }}
76
+ name : wheels-${{ matrix.os }}-${{ matrix.arch }}
63
77
path : ./wheelhouse/*.whl
64
78
65
79
build_sdist :
88
102
run :
89
103
shell : bash
90
104
name : Check artifacts are correct
91
- runs-on : ubuntu-20 .04
105
+ runs-on : ubuntu-22 .04
92
106
steps :
93
107
- uses : actions/checkout@v4
94
108
- uses : actions/download-artifact@v4
0 commit comments