File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 39
39
)
40
40
echo "include=$MATRIX" | tee -a $GITHUB_OUTPUT
41
41
env :
42
- CIBW_ARCHS_LINUX : x86_64
42
+ CIBW_ARCHS_LINUX : x86_64 aarch64
43
43
CIBW_ARCHS_MACOS : x86_64 arm64
44
44
CIBW_ARCHS_WINDOWS : AMD64
45
45
53
53
include : ${{ fromJson(needs.generate_wheels_matrix.outputs.include) }}
54
54
55
55
steps :
56
+ - uses : docker/setup-qemu-action@v2
57
+ if : runner.os == 'Linux'
58
+ with :
59
+ platforms : arm64
56
60
- uses : actions/checkout@v4
57
61
- name : Checkout mypy
58
62
shell : bash
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ linux.manylinux-aarch64-image = "manylinux_2_28"
6
6
linux.musllinux-x86_64-image = " musllinux_1_2"
7
7
linux.musllinux-aarch64-image = " musllinux_1_2"
8
8
9
- # Don't build 32-bit wheels or PyPy
9
+ # Don't build 32-bit wheels / PyPy / musllinux arm64
10
10
skip = [
11
11
" *-manylinux_i686" ,
12
12
" *-musllinux_i686" ,
13
13
" *-win32" ,
14
14
" pp*" ,
15
+ " *-musllinux_aarch64" ,
15
16
]
16
17
17
18
# Python 3.8 can't be tested on macOS arm64
@@ -84,3 +85,17 @@ before-test = [
84
85
" pip install -r {project}/mypy/test-requirements.txt" ,
85
86
]
86
87
environment = { MYPYC_OPT_LEVEL =" 3" , MYPYC_DEBUG_LEVEL =" 0" , CC =" clang" }
88
+
89
+ [[tool .cibuildwheel .overrides ]]
90
+ select = " *linux_aarch64"
91
+ # Only run testcheck, since the other tests are slow and can be flaky (because of TimeoutError).
92
+ test-command = """ \
93
+ ( \
94
+ DIR=$(python -c 'import mypy, os; dn = os.path.dirname; print(dn(dn(mypy.__path__[0])))') \
95
+ && cp '{project}/mypy/pyproject.toml' '{project}/mypy/conftest.py' $DIR \
96
+ \
97
+ && MYPY_TEST_DIR=$(python -c 'import mypy.test; print(mypy.test.__path__[0])') \
98
+ \
99
+ && MYPY_TEST_PREFIX='{project}/mypy' pytest $MYPY_TEST_DIR/testcheck.py \
100
+ )
101
+ """
You can’t perform that action at this time.
0 commit comments