Skip to content

Commit

Permalink
ARM Linux CI (flintlib#2244)
Browse files Browse the repository at this point in the history
* Add Ubuntu ARM CI runner

* Remove unnecessary lines in Ubuntu Clang runner
  • Loading branch information
albinahlback committed Mar 5, 2025
1 parent b5496b7 commit aa9f0b0
Showing 1 changed file with 58 additions and 6 deletions.
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

0 comments on commit aa9f0b0

Please sign in to comment.