@@ -44,22 +44,25 @@ jobs:
44
44
# test_unary_spurious_fpexception is currently skipped
45
45
# FIXME(@seiko2plus): Requires confirmation for the following issue:
46
46
# The presence of an FP invalid exception caused by sqrt. Unsure if this is a qemu bug or not.
47
- " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_unary_spurious_fpexception"
48
- ]
47
+ " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_unary_spurious_fpexception" ,
48
+ " arm"
49
+ ]
49
50
- [
50
51
" ppc64le" ,
51
52
" powerpc64le-linux-gnu" ,
52
53
" ppc64le/ubuntu:22.04" ,
53
54
" -Dallow-noblas=true" ,
54
55
" test_kind or test_multiarray or test_simd or test_umath or test_ufunc" ,
55
- ]
56
+ " ppc64le"
57
+ ]
56
58
- [
57
59
" ppc64le - baseline(Power9)" ,
58
60
" powerpc64le-linux-gnu" ,
59
61
" ppc64le/ubuntu:22.04" ,
60
62
" -Dallow-noblas=true -Dcpu-baseline=vsx3" ,
61
63
" test_kind or test_multiarray or test_simd or test_umath or test_ufunc" ,
62
- ]
64
+ " ppc64le"
65
+ ]
63
66
- [
64
67
" s390x" ,
65
68
" s390x-linux-gnu" ,
@@ -68,27 +71,31 @@ jobs:
68
71
# Skipping TestRationalFunctions.test_gcd_overflow test
69
72
# because of a possible qemu bug that appears to be related to int64 overflow in absolute operation.
70
73
# TODO(@seiko2plus): Confirm the bug and provide a minimal reproducer, then report it to upstream.
71
- " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_gcd_overflow"
72
- ]
74
+ " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_gcd_overflow" ,
75
+ " s390x"
76
+ ]
73
77
- [
74
78
" s390x - baseline(Z13)" ,
75
79
" s390x-linux-gnu" ,
76
80
" s390x/ubuntu:22.04" ,
77
81
" -Dallow-noblas=true -Dcpu-baseline=vx" ,
78
- " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_gcd_overflow"
79
- ]
82
+ " (test_kind or test_multiarray or test_simd or test_umath or test_ufunc) and not test_gcd_overflow" ,
83
+ " s390x"
84
+ ]
80
85
- [
81
86
" riscv64" ,
82
87
" riscv64-linux-gnu" ,
83
88
" riscv64/ubuntu:22.04" ,
84
89
" -Dallow-noblas=true" ,
85
- " test_kind or test_multiarray or test_simd or test_umath or test_ufunc"
86
- ]
90
+ " test_kind or test_multiarray or test_simd or test_umath or test_ufunc" ,
91
+ " riscv64"
92
+ ]
87
93
env :
88
94
TOOLCHAIN_NAME : ${{ matrix.BUILD_PROP[1] }}
89
95
DOCKER_CONTAINER : ${{ matrix.BUILD_PROP[2] }}
90
96
MESON_OPTIONS : ${{ matrix.BUILD_PROP[3] }}
91
97
RUNTIME_TEST_FILTER : ${{ matrix.BUILD_PROP[4] }}
98
+ ARCH : ${{ matrix.BUILD_PROP[5] }}
92
99
TERM : xterm-256color
93
100
94
101
name : " ${{ matrix.BUILD_PROP[0] }}"
@@ -117,7 +124,8 @@ jobs:
117
124
- name : Creates new container
118
125
if : steps.container-cache.outputs.cache-hit != 'true'
119
126
run : |
120
- docker run --name the_container --interactive -v /:/host -v $(pwd):/numpy ${DOCKER_CONTAINER} /bin/bash -c "
127
+ docker run --platform=linux/${ARCH} --name the_container --interactive \
128
+ -v /:/host -v $(pwd):/numpy ${DOCKER_CONTAINER} /bin/bash -c "
121
129
apt update &&
122
130
apt install -y cmake git python3 python-is-python3 python3-dev python3-pip &&
123
131
mkdir -p /lib64 && ln -s /host/lib64/ld-* /lib64/ &&
@@ -147,20 +155,23 @@ jobs:
147
155
148
156
- name : Meson Build
149
157
run : |
150
- docker run --rm -e "TERM=xterm-256color" -v $(pwd):/numpy -v /:/host the_container \
151
- /bin/script -e -q -c "/bin/bash --noprofile --norc -eo pipefail -c '
152
- cd /numpy && spin build --clean -- ${MESON_OPTIONS}
153
- '"
158
+ docker run --rm --platform=linux/${ARCH} -e "TERM=xterm-256color" \
159
+ -v $(pwd):/numpy -v /:/host the_container \
160
+ /bin/script -e -q -c "/bin/bash --noprofile --norc -eo pipefail -c '
161
+ cd /numpy && spin build --clean -- ${MESON_OPTIONS}
162
+ '"
154
163
155
164
- name : Meson Log
156
165
if : always()
157
166
run : ' cat build/meson-logs/meson-log.txt'
158
167
159
168
- name : Run Tests
160
169
run : |
161
- docker run --rm -e "TERM=xterm-256color" -v $(pwd):/numpy -v /:/host the_container \
162
- /bin/script -e -q -c "/bin/bash --noprofile --norc -eo pipefail -c '
163
- export F90=/usr/bin/gfortran
164
- cd /numpy && spin test -- -k \"${RUNTIME_TEST_FILTER}\"
165
- '"
170
+ docker run --rm --platform=linux/${ARCH} -e "TERM=xterm-256color" \
171
+ -v $(pwd):/numpy -v /:/host the_container \
172
+ /bin/script -e -q -c "/bin/bash --noprofile --norc -eo pipefail -c '
173
+ export F90=/usr/bin/gfortran
174
+ cd /numpy && spin test -- -k \"${RUNTIME_TEST_FILTER}\"
175
+ '"
176
+
166
177
0 commit comments