@@ -95,12 +95,13 @@ jobs:
95
95
strategy :
96
96
matrix :
97
97
config :
98
- - {os: "ubuntu-20.04", label: "pyodide", platform: "pyodide"}
99
- - {os: "ubuntu-20.04", label: "linux", platform: "auto"}
100
- - {os: "windows-2019", label: "windows", platform: "auto"}
101
- - {os: "macOS-13", label: "macOS", platform: "auto"}
102
- - {os: "macOS-14", label: "macOS-arm64", platform: "auto"}
103
- - {os: ["self-hosted", "arm"], label: "linux-arm64", platform: "auto"}
98
+ - {os: "ubuntu-20.04", label: "pyodide", platform: "pyodide", arch: "auto"}
99
+ - {os: "ubuntu-20.04", label: "linux", platform: "auto", arch: "auto"}
100
+ - {os: "windows-2019", label: "windows-x86", platform: "auto", arch: "x86"}
101
+ - {os: "windows-2019", label: "windows-amd64", platform: "auto", arch: "AMD64"}
102
+ - {os: "macOS-13", label: "macOS", platform: "auto", arch: "auto"}
103
+ - {os: "macOS-14", label: "macOS-arm64", platform: "auto", arch: "auto"}
104
+ - {os: ["self-hosted", "arm"], label: "linux-arm64", platform: "auto", arch: "auto"}
104
105
105
106
steps :
106
107
- uses : actions/checkout@v4
@@ -109,9 +110,28 @@ jobs:
109
110
fetch-tags : true
110
111
111
112
- uses : actions/setup-python@v5
113
+ if : matrix.config.arch != 'x86'
112
114
with :
113
115
python-version : " 3.12"
114
116
117
+ - name : Setup MSVC (64-bit)
118
+ if : matrix.config.arch == 'AMD64'
119
+ uses : ilammy/msvc-dev-cmd@v1
120
+ with :
121
+ arch : x64
122
+
123
+ - uses : actions/setup-python@v5
124
+ if : matrix.config.arch == 'x86'
125
+ with :
126
+ python-version : " 3.12"
127
+ architecture : x86
128
+
129
+ - name : Setup MSVC (32-bit)
130
+ if : matrix.config.arch == 'x86'
131
+ uses : ilammy/msvc-dev-cmd@v1
132
+ with :
133
+ arch : x86
134
+
115
135
- name : Install cibuildwheel
116
136
run : python -m pip install cibuildwheel==2.21.1
117
137
@@ -127,6 +147,7 @@ jobs:
127
147
CIBW_TEST_REQUIRES : pytest
128
148
CIBW_TEST_COMMAND : pytest {package}/tests -vv
129
149
CIBW_PLATFORM : ${{ matrix.config.platform }}
150
+ CIBW_ARCHS : ${{ matrix.config.arch }}
130
151
131
152
- uses : actions/upload-artifact@v4
132
153
with :
0 commit comments