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

ARM Linux CI #2244

Merged
merged 2 commits into from
Mar 5, 2025
Merged
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
64 changes: 58 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,64 @@ jobs:



##############################################################################
# ubuntu arm
##############################################################################
ubuntu-arm:
name: Ubuntu ARM (x5)

runs-on: ubuntu-24.04-arm

env:
CC: "gcc"
FLINT_TEST_MULTIPLIER: "5"

steps:
- name: "Rescale multiplier"
run: |
FLINT_TEST_MULTIPLIER=$(echo "${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}" | bc)
echo "FLINT_TEST_MULTIPLIER=${FLINT_TEST_MULTIPLIER}"
echo "FLINT_TEST_MULTIPLIER=${FLINT_TEST_MULTIPLIER}" >> $GITHUB_ENV

- uses: actions/checkout@v4

- name: "Setup"
run: |
sudo apt-get install -y \
libgmp-dev \
libmpfr-dev \
autoconf \
libtool-bin

# Check versions
gcc --version
make --version
autoconf --version
libtool --version
echo "MAKE=make -j$(expr $(nproc) + 1) --output-sync=target" >> $GITHUB_ENV

- name: "Configure"
run: |
./bootstrap.sh
./configure \
CC=${CC} \
--disable-debug

- name: "Compile library"
run: |
$MAKE
ldd libflint.so

- name: "Compile tests"
run: |
$MAKE tests

- name: "Check"
run: |
$MAKE check



##############################################################################
# macos (M1) with clang
##############################################################################
Expand Down Expand Up @@ -253,13 +311,7 @@ jobs:

runs-on: ubuntu-24.04

# NOTE: Clang is currently buggy on Ubuntu. Hence, we temporarily allow
# this job to fail.
continue-on-error: true

env:
LOCAL: ${{ github.workspace }}/local
LDFLAGS: "-Wl,-rpath,$LOCAL/lib"
CC: "clang"
FLINT_TEST_MULTIPLIER: "5"

Expand Down