Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux_aarch64 platform #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
)
echo "include=$MATRIX" | tee -a $GITHUB_OUTPUT
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64

Expand All @@ -53,6 +53,10 @@ jobs:
include: ${{ fromJson(needs.generate_wheels_matrix.outputs.include) }}

steps:
- uses: docker/setup-qemu-action@v2
if: runner.os == 'Linux'
with:
platforms: arm64
- uses: actions/checkout@v4
- name: Checkout mypy
shell: bash
Expand Down
14 changes: 14 additions & 0 deletions cibuildwheel.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,17 @@ before-test = [
"pip install -r {project}/mypy/test-requirements.txt",
]
environment = { MYPYC_OPT_LEVEL="3", MYPYC_DEBUG_LEVEL="0", CC="clang" }

[[tool.cibuildwheel.overrides]]
select = "*linux_aarch64"
# Only run testcheck, since the other tests are slow and can be flaky (because of TimeoutError).
test-command = """ \
( \
DIR=$(python -c 'import mypy, os; dn = os.path.dirname; print(dn(dn(mypy.__path__[0])))') \
&& cp '{project}/mypy/pyproject.toml' '{project}/mypy/conftest.py' $DIR \
\
&& MYPY_TEST_DIR=$(python -c 'import mypy.test; print(mypy.test.__path__[0])') \
\
&& MYPY_TEST_PREFIX='{project}/mypy' pytest $MYPY_TEST_DIR/testcheck.py \
)
"""
Loading