@@ -16,63 +16,53 @@ jobs:
16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- os : [macos-11, windows-2019]
20
- bitness : [32, 64]
21
19
include :
22
20
# Run 32 and 64 bit version in parallel for Windows
23
- - os : windows-2019
24
- bitness : 64
21
+ - os : windows-2022
25
22
platform_id : win_amd64
26
- - os : windows-2019
27
- bitness : 32
23
+ architecture : x64
24
+ - os : windows-2022
28
25
platform_id : win32
29
- - os : macos-11
30
- bitness : 64
26
+ architecture : x86
27
+ - os : macos-13
31
28
platform_id : macosx_x86_64
32
- exclude :
33
- - os : macos-11
34
- bitness : 32
29
+ architecture : x64
30
+ - os : macos-14
31
+ platform_id : macosx_arm64
32
+ architecture : arm64
35
33
env :
36
- CIBW_BUILD : cp38 -${{ matrix.platform_id }} cp39 -${{ matrix.platform_id }} cp310 -${{ matrix.platform_id }} cp311 -${{ matrix.platform_id }} cp312 -${{ matrix.platform_id }}
37
- CIBW_SKIP : pp* cp35* cp36* cp37*
38
- CIBW_BEFORE_BUILD_MACOS : " source packing/build_pango_mac.sh "
34
+ CIBW_BUILD : cp39 -${{ matrix.platform_id }} cp310 -${{ matrix.platform_id }} cp311 -${{ matrix.platform_id }} cp312 -${{ matrix.platform_id }} cp313 -${{ matrix.platform_id }}
35
+ CIBW_SKIP : pp* cp36* cp37* cp38 *
36
+ CIBW_BEFORE_BUILD_MACOS : " python packing/download_pango_macos.py ${{ matrix.architecture }} "
39
37
CIBW_BEFORE_BUILD_WINDOWS : " python packing/download_dlls.py"
40
38
CIBW_ENVIRONMENT_WINDOWS : " PKG_CONFIG_PATH='C:\\ cibw\\ vendor\\ lib\\ pkgconfig'"
41
39
CIBW_ENVIRONMENT_MACOS : " PKG_CONFIG_PATH='/Users/runner/pangobuild/lib/pkgconfig'"
42
- CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : python packing/inject-dlls.py {wheel} {dest_dir} C:\cibw\vendor\bin
43
40
CIBW_TEST_REQUIRES : pytest pytest-cov
44
41
CIBW_TEST_COMMAND : " bash {project}/packing/test_wheels.sh {project}"
45
42
steps :
46
- - uses : actions/checkout@v3
47
- - uses : actions/setup-python@v4
48
- name : Install Python
49
- with :
50
- python-version : " 3.8"
51
-
52
- - name : Install cibuildwheel
53
- env :
54
- event_name : ${{ github.event_name }}
55
- continue-on-error : true
56
- shell : bash
43
+ - uses : actions/checkout@v4
44
+ - name : Set Path for pkg-config
45
+ if : runner.os == 'windows'
57
46
run : |
58
- python -m pip install cibuildwheel==2.16.1
59
- echo "$event_name"
47
+ $env:Path = "C:\cibw\pkg-config\bin;C:\cibw\vendor\bin;$($env:PATH)"
48
+ echo "$env:Path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
60
49
61
50
- name : Build wheels (Windows)
62
51
if : runner.os == 'windows'
52
+ shell : pwsh
63
53
run : |
64
- $ErrorActionPreference = 'Stop'
65
- $env:PATH="$env:PATH;C:\cibw\pkg-config\bin"
66
- $env:PKG_CONFIG_PATH="C:\cibw\vendor\lib\pkgconfig"
67
54
Copy-Item packing/LICENSE.bin .
68
55
Rename-Item LICENSE.bin LICENSE.win32
69
- python -m cibuildwheel --output-dir wheelhouse
70
56
71
57
- name : Build wheels (Non-Windows)
72
58
if : runner.os != 'windows'
73
59
run : |
74
60
cp packing/LICENSE.bin .
75
- python -m cibuildwheel --output-dir wheelhouse
61
+
62
+ - name : Build wheels
63
+
64
+ env :
65
+ PKG_CONFIG_PATH : " C:\\ cibw\\ vendor\\ lib\\ pkgconfig"
76
66
77
67
- uses : actions/upload-artifact@v3
78
68
with :
@@ -86,26 +76,32 @@ jobs:
86
76
strategy :
87
77
fail-fast : false
88
78
matrix :
89
- os : [macos-11, windows-2019]
90
- architecture : [x86, x64]
91
- python-version : ['3.8', '3.9', '3.10', '3.11']
79
+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
80
+ os : [windows-2022, macos-13, macos-14]
92
81
include :
93
- - os : windows-2019
94
- architecture : x64
82
+ - os : windows-2022
95
83
platform_id : win_amd64
96
- - os : windows-2019
97
- architecture : x86
98
- platform_id : win32
99
- - os : macos-11
100
84
architecture : x64
101
- platform_id : macosx_x86_64
102
- exclude :
103
- - os : macos-11
85
+ - os : windows-2022
86
+ platform_id : win32
104
87
architecture : x86
88
+ - os : macos-13
89
+ platform_id : macosx_x86_64
90
+ architecture : x86_64
91
+ - os : macos-14
92
+ platform_id : macosx_arm64
93
+ architecture : arm64
94
+
95
+ # include: [
96
+ # {os: windows-2022, platform_id: win_amd64, architecture: x64},
97
+ # {os: windows-2022, platform_id: win32, architecture: x86},
98
+ # {os: macos-13, platform_id: macosx_x86_64, architecture: x86_64},
99
+ # {os: macos-14, platform_id: macosx_arm64, architecture: arm64}
100
+ # ]
105
101
steps :
106
- - uses : actions/checkout@v3
102
+ - uses : actions/checkout@v4
107
103
108
- - uses : actions/setup-python@v4
104
+ - uses : actions/setup-python@v5
109
105
name : Install Python
110
106
with :
111
107
python-version : ${{ matrix.python-version }}
@@ -162,7 +158,7 @@ jobs:
162
158
if : github.event_name== 'release'
163
159
steps :
164
160
- name : Checkout
165
- uses : actions/checkout@v3
161
+ uses : actions/checkout@v4
166
162
167
163
- name : Setup Python
168
164
uses : actions/setup-python@v4
0 commit comments