Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit a7c6178

Browse files
committed
Switch to the arm-linux runner and enable MPFR
The free arm64 Linux runners are now available [1]. Switch to using this image in CI, and enable tests against MPFR since this is now a native platform. [1]: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/
1 parent 04443d5 commit a7c6178

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- target: aarch64-apple-darwin
2424
os: macos-15
2525
- target: aarch64-unknown-linux-gnu
26-
os: ubuntu-24.04
26+
os: ubuntu-24.04-arm
2727
- target: aarch64-pc-windows-msvc
2828
os: windows-2025
2929
build_only: 1 # Can't run on x86 hosts

ci/run.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ case "$target" in
4949
*windows-msvc*) ;;
5050
# FIXME: MinGW should be able to build MPFR, but setup in CI is nontrivial.
5151
*windows-gnu*) ;;
52-
# Targets that aren't cross compiled work fine
53-
# FIXME(ci): we should be able to enable aarch64 Linux here once GHA
54-
# support rolls out.
55-
x86_64*) flags="$flags --features libm-test/build-mpfr" ;;
56-
i686*) flags="$flags --features libm-test/build-mpfr" ;;
57-
i586*) flags="$flags --features libm-test/build-mpfr --features gmp-mpfr-sys/force-cross" ;;
58-
# Apple aarch64 is native
52+
# Targets that aren't cross compiled in CI work fine
5953
aarch64*apple*) flags="$flags --features libm-test/build-mpfr" ;;
54+
aarch64*linux*) flags="$flags --features libm-test/build-mpfr" ;;
55+
i586*) flags="$flags --features libm-test/build-mpfr --features gmp-mpfr-sys/force-cross" ;;
56+
i686*) flags="$flags --features libm-test/build-mpfr" ;;
57+
x86_64*) flags="$flags --features libm-test/build-mpfr" ;;
6058
esac
6159

6260
# FIXME: `STATUS_DLL_NOT_FOUND` testing macros on CI.

0 commit comments

Comments
 (0)