Skip to content

Commit 66a33e4

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 bb1515b commit 66a33e4

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/ports_unix.yml

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

105+
coverage_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_repr_b_build
113+
- name: Run main test suite
114+
run: source tools/ci.sh && ci_unix_coverage_repr_b_run_tests
115+
- name: Print failures
116+
if: failure()
117+
run: tests/run-tests.py --print-failures
118+
105119
coverage_32bit:
106120
runs-on: ubuntu-22.04 # use 22.04 to get libffi-dev:i386
107121
steps:

tools/ci.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,14 @@ CI_UNIX_OPTS_SANITIZE_UNDEFINED=(
520520
LDFLAGS_EXTRA="-fsanitize=undefined -fno-sanitize=nonnull-attribute"
521521
)
522522

523+
CI_UNIX_OPTS_REPR_B=(
524+
VARIANT=coverage
525+
CFLAGS_EXTRA="-DMICROPY_OBJ_REPR=MICROPY_OBJ_REPR_B -Dmp_int_t=int32_t -Dmp_uint_t=uint32_t"
526+
MICROPY_FORCE_32BIT=1
527+
RUN_TESTS_MPY_CROSS_FLAGS="--mpy-cross-flags=\"-march=x86 -msmall-int-bits=29\""
528+
529+
)
530+
523531
function ci_unix_build_helper {
524532
make ${MAKEOPTS} -C mpy-cross
525533
make ${MAKEOPTS} -C ports/unix "$@" submodules
@@ -672,6 +680,15 @@ function ci_unix_32bit_setup {
672680
python3 --version
673681
}
674682

683+
function ci_unix_coverage_repr_b_build {
684+
ci_unix_build_helper "${CI_UNIX_OPTS_REPR_B[@]}"
685+
ci_unix_build_ffi_lib_helper gcc -m32
686+
}
687+
688+
function ci_unix_coverage_repr_b_run_tests {
689+
ci_unix_run_tests_helper "${CI_UNIX_OPTS_REPR_B[@]}"
690+
}
691+
675692
function ci_unix_coverage_32bit_build {
676693
ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1
677694
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