Skip to content

Commit

Permalink
CI: Build and release on 32bit Windows Python
Browse files Browse the repository at this point in the history
  • Loading branch information
aiudirog committed May 25, 2021
1 parent 4f1c2e8 commit 2c82e58
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
"win-py-3.7",
"win-py-3.6",
],
"arch": [
"x64",
"x86"
],
"include": [
{
"name": "win-py-3.9",
Expand Down Expand Up @@ -94,7 +98,10 @@
{
"name": "Install the right python",
"uses": "actions/setup-python@v2",
"with": { "python-version": "${{ matrix.pyenv }}" },
"with": {
"python-version": "${{ matrix.pyenv }}",
"architecture": "${{ matrix.arch }}"
},
},
{
"name": "Build and test gssapi",
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
"win-wheel-3.7",
"win-wheel-3.6",
],
"arch": [
"x64",
"x86"
],
"include": [
{
"name": "win-wheel-3.9",
Expand Down Expand Up @@ -113,7 +117,10 @@
{
"name": "Install the right python",
"uses": "actions/setup-python@v2",
"with": { "python-version": "${{ matrix.pyenv }}" },
"with": {
"python-version": "${{ matrix.pyenv }}",
"architecture": "${{ matrix.arch }}"
},
},
{
"name": "Create and upload Windows wheel",
Expand Down
5 changes: 5 additions & 0 deletions ci/lib-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ setup::macos::install() {
setup::windows::install() {
CHINST="choco install --no-progress --yes --ignore-detected-reboot --allow-downgrade"

# Install the 32bit version if Python is 32bit
if python -c "assert __import__('sys').maxsize <= 2**32"; then
CHINST="$CHINST --x86"
fi

# Install MIT Kerberos. choco will fail despite the installation working.
$CHINST mitkerberos --install-arguments "'ADDLOCAL=ALL'" || true

Expand Down

0 comments on commit 2c82e58

Please sign in to comment.