File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,24 @@ jobs:
102
102
if : failure()
103
103
run : tests/run-tests.py --print-failures
104
104
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 : 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
+
105
123
coverage_32bit :
106
124
runs-on : ubuntu-22.04 # use 22.04 to get libffi-dev:i386
107
125
steps :
Original file line number Diff line number Diff line change @@ -520,6 +520,14 @@ CI_UNIX_OPTS_SANITIZE_UNDEFINED=(
520
520
LDFLAGS_EXTRA=" -fsanitize=undefined -fno-sanitize=nonnull-attribute"
521
521
)
522
522
523
+ CI_UNIX_OPTS_REPR_B=(
524
+ VARIANT=coverage
525
+ CFLAGS_EXTRA=" -fsanitize=undefined -fno-sanitize=nonnull-attribute -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
+
523
531
function ci_unix_build_helper {
524
532
make ${MAKEOPTS} -C mpy-cross
525
533
make ${MAKEOPTS} -C ports/unix " $@ " submodules
@@ -672,6 +680,15 @@ function ci_unix_32bit_setup {
672
680
python3 --version
673
681
}
674
682
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_full_no_native_helper coverage " ${CI_UNIX_OPTS_REPR_B[@]} "
690
+ }
691
+
675
692
function ci_unix_coverage_32bit_build {
676
693
ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1
677
694
ci_unix_build_ffi_lib_helper gcc -m32
You can’t perform that action at this time.
0 commit comments