xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
687 stars 394 forks source link

Improve cross ci #5141

Closed star-hengxing closed 1 month ago

star-hengxing commented 2 months ago

The cross-compiling toolchain is outdated, and musl.cc is no longer maintained😵‍💫. Toward the end of the year, when the Linux ARM CI instance reaches GA, we might consider removing cross-compiling CI. Alternatively, we could use the aarch64-linux-gnu toolchain that comes with Debian/Ubuntu, or we could maintain our own cutting-edge musl cross-compiling toolchain.

Originally posted by @c8ef in https://github.com/xmake-io/xmake-repo/issues/5090#issuecomment-2320193536

c8ef commented 2 months ago

The good news is that Linux & Windows Arm CI is now generally available. The downside is that it is currently only accessible to team and enterprise customers. I'm not sure if we have access to these machines.🤓

waruqi commented 2 months ago

windows arm ci. https://github.com/xmake-io/xmake-repo/blob/c02fc3aff61a4d1f9a49d901232a0832348f92c6/.github/workflows/windows.yml#L15

c8ef commented 2 months ago

No, I mean a native ARM Windows machine, not cross-compiling on an x86 Windows server.

See also: https://github.blog/changelog/2024-09-03-github-actions-arm64-linux-and-windows-runners-are-now-generally-available

waruqi commented 2 months ago

https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/#get-started-using-arm-hosted-runners-today

We expect to begin offering Arm runners for open source projects by the end of the year

star-hengxing commented 1 month ago

https://github.com/xmake-io/xmake-repo/actions/runs/10812519041/job/29994350373?pr=5059 Any idea?

c8ef commented 1 month ago

Not sure what happened.🥶The official CI for libffi does not cover the musl toolchain. Perhaps consider switching to the GNU toolchain and trying again?

c8ef commented 1 month ago

5230

The linker behavior of this toolchain is very strange.

star-hengxing commented 1 month ago

https://github.com/xmake-io/xmake-repo/actions/runs/10812519041/job/29994350373?pr=5059 Any idea?

See https://github.com/xmake-io/xmake/issues/5639 Test package: https://github.com/xmake-io/xmake-repo/pull/5337