Add CI test for cross-builds #127432
Labels
build
The build process and cross-build
easy
infra
CI, GitHub Actions, buildbots, Dependabot, etc.
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
Cross-builds depend on a fair bit of
sysconfig
internals, it would be good have a test in the CI to ensure they work.This would have prevented #127178 (comment).
I don't think there's a need to run the full test suite, we should be fine running just the
sysconfig
,site
, andtest_embed
tests. It would also make sense to run the tests in the build directory, and after installation.The test should consist of:
workdir/host-python
)--with-build-python=workdir/host-python/bin/python
, and also using a custom prefix (eg.workdir/cross-python
)./python -m test test_sysconfig test_site test_embed
)workdir/cross-python/bin/python -m test test_sysconfig test_site test_embed
)I think we should be fine with Linux-only, but Windows would also be welcome. Additionally, possibly, we could also use a different architecture in the cross-build, like
jit.yml
does for "Emulated Linux".cpython/.github/workflows/jit.yml
Lines 129 to 146 in 38264a0
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: