Skip to content

Commit f23b299

Browse files
committed
CI: Cross-compile 32-bit Linux Python
Debian does build 32bit and there was a recent regression
1 parent 563e29d commit f23b299

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,37 @@ jobs:
155155
continue-on-error: true
156156
- name: Mark as a success
157157
run: exit 0
158+
159+
python_32bits:
160+
runs-on: ubuntu-latest
161+
name: Test mypyc suite with 32-bit Python
162+
steps:
163+
- uses: actions/checkout@v3
164+
- name: Install 32-bit build dependencies
165+
run: |
166+
sudo dpkg --add-architecture i386 && \
167+
sudo apt-get update && sudo apt-get install -y \
168+
zlib1g-dev:i386 \
169+
g++-i686-linux-gnu \
170+
gcc-i686-linux-gnu \
171+
libffi-dev:i386 \
172+
libssl-dev:i386 \
173+
libbz2-dev:i386 \
174+
libncurses-dev:i386 \
175+
libreadline-dev:i386 \
176+
libsqlite3-dev:i386 \
177+
liblzma-dev:i386 \
178+
uuid-dev:i386
179+
- name: Compile, install, and activate 32-bit Python
180+
uses: gabrielfalcao/pyenv-action@v13
181+
env:
182+
CXX: i686-linux-gnu-g++
183+
CC: i686-linux-gnu-gcc
184+
with:
185+
default: 3.11.1
186+
- name: Install tox
187+
run: pip install --upgrade 'setuptools!=50' tox==4.4.4
188+
- name: Setup tox environment
189+
run: tox run -e py --notest
190+
- name: Test
191+
run: tox run -e py --skip-pkg-install -- -n 2 mypyc/test/test_run.py

0 commit comments

Comments
 (0)