Skip to content

Commit 2c82e58

Browse files
committed
CI: Build and release on 32bit Windows Python
1 parent 4f1c2e8 commit 2c82e58

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"win-py-3.7",
6767
"win-py-3.6",
6868
],
69+
"arch": [
70+
"x64",
71+
"x86"
72+
],
6973
"include": [
7074
{
7175
"name": "win-py-3.9",
@@ -94,7 +98,10 @@
9498
{
9599
"name": "Install the right python",
96100
"uses": "actions/setup-python@v2",
97-
"with": { "python-version": "${{ matrix.pyenv }}" },
101+
"with": {
102+
"python-version": "${{ matrix.pyenv }}",
103+
"architecture": "${{ matrix.arch }}"
104+
},
98105
},
99106
{
100107
"name": "Build and test gssapi",

.github/workflows/release.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
"win-wheel-3.7",
8686
"win-wheel-3.6",
8787
],
88+
"arch": [
89+
"x64",
90+
"x86"
91+
],
8892
"include": [
8993
{
9094
"name": "win-wheel-3.9",
@@ -113,7 +117,10 @@
113117
{
114118
"name": "Install the right python",
115119
"uses": "actions/setup-python@v2",
116-
"with": { "python-version": "${{ matrix.pyenv }}" },
120+
"with": {
121+
"python-version": "${{ matrix.pyenv }}",
122+
"architecture": "${{ matrix.arch }}"
123+
},
117124
},
118125
{
119126
"name": "Create and upload Windows wheel",

ci/lib-setup.sh

+5
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ setup::macos::install() {
6464
setup::windows::install() {
6565
CHINST="choco install --no-progress --yes --ignore-detected-reboot --allow-downgrade"
6666

67+
# Install the 32bit version if Python is 32bit
68+
if python -c "assert __import__('sys').maxsize <= 2**32"; then
69+
CHINST="$CHINST --x86"
70+
fi
71+
6772
# Install MIT Kerberos. choco will fail despite the installation working.
6873
$CHINST mitkerberos --install-arguments "'ADDLOCAL=ALL'" || true
6974

0 commit comments

Comments
 (0)