Skip to content

Commit cb17ed8

Browse files
committed
ci: Add 32-bit REPR_B build.
This showed up some interesting errors (hopefully all fixed now). Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent 898bcc8 commit cb17ed8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/ports_unix.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,24 @@ jobs:
102102
if: failure()
103103
run: tests/run-tests.py --print-failures
104104

105+
coverage_32bit_repr_b:
106+
runs-on: ubuntu-22.04 # use 22.04 to get libffi-dev:i386
107+
steps:
108+
- uses: actions/checkout@v4
109+
- name: Install packages
110+
run: source tools/ci.sh && ci_unix_32bit_setup
111+
- name: Build
112+
run: source tools/ci.sh && ci_unix_coverage_32bit_repr_b_build
113+
- name: Run main test suite
114+
run: source tools/ci.sh && ci_unix_coverage_32bit_run_tests
115+
- name: Build native mpy modules
116+
run: source tools/ci.sh && ci_native_mpy_modules_32bit_build
117+
- name: Test importing .mpy generated by mpy_ld.py
118+
run: source tools/ci.sh && ci_unix_coverage_32bit_run_native_mpy_tests
119+
- name: Print failures
120+
if: failure()
121+
run: tests/run-tests.py --print-failures
122+
105123
coverage_32bit:
106124
runs-on: ubuntu-22.04 # use 22.04 to get libffi-dev:i386
107125
steps:

tools/ci.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,11 @@ function ci_unix_32bit_setup {
672672
python3 --version
673673
}
674674

675+
function ci_unix_coverage_32bit_repr_b_build {
676+
ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1 CFLAGS_EXTRA="-DMICROPY_OBJ_REPR=MICROPY_OBJ_REPR_B -Dmp_int_t=int32_t -Dmp_uint_t=uint32_t"
677+
ci_unix_build_ffi_lib_helper gcc -m32
678+
}
679+
675680
function ci_unix_coverage_32bit_build {
676681
ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1
677682
ci_unix_build_ffi_lib_helper gcc -m32

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy