Skip to content

Commit

Permalink
Update CI runners
Browse files Browse the repository at this point in the history
In particular, remove x86 macOS runner since they are deprecated on
Github.
  • Loading branch information
albinahlback committed Dec 6, 2024
1 parent 692dd5c commit 027c67f
Showing 1 changed file with 12 additions and 67 deletions.
79 changes: 12 additions & 67 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
macos-m1:
name: macOS-M1, Clang (x3)

runs-on: macos-14
runs-on: macos-15

env:
FLINT_TEST_MULTIPLIER: "3"
Expand All @@ -208,9 +208,11 @@ jobs:

- name: "Setup"
run: |
# GMP and MPFR are already installed, and it complains if we try to
# install it.
# brew install gmp
# brew install mpfr
brew install make
brew install gmp
brew install mpfr
brew install autoconf
brew install libtool
brew install automake
Expand Down Expand Up @@ -242,71 +244,13 @@ jobs:
##############################################################################
# macos (x86) with clang and blas
##############################################################################
macos-x86:
name: macOS-x86 Clang with BLAS (x2)

runs-on: macos-12

env:
FLINT_TEST_MULTIPLIER: "2"

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: |
brew install make
brew install gmp
brew install mpfr
brew install autoconf
brew install libtool
brew install automake
brew install openblas
$(brew --prefix llvm@15)/bin/clang --version
gmake --version
autoconf --version
echo "MAKE=gmake -j$(expr $(nproc) + 1) -l 10 --output-sync=target" >> $GITHUB_ENV
- name: "Configure"
run: |
./bootstrap.sh
./configure \
CC=$(brew --prefix llvm@15)/bin/clang \
--with-gmp=$(brew --prefix) \
--with-mpfr=$(brew --prefix) \
--with-blas=$(brew --prefix)/opt/openblas \
--disable-debug
- name: "Compile library"
run: |
$MAKE
- name: "Compile tests"
run: |
$MAKE tests
- name: "Check"
run: |
$MAKE check
#############################################################################
# ubuntu with clang
# ubuntu with clang and BLAS
#############################################################################
ubuntu-clang:
name: Ubuntu Clang with examples (x5)
name: Ubuntu Clang, BLAS and examples (x5)

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

env:
LOCAL: ${{ github.workspace }}/local
Expand All @@ -325,7 +269,7 @@ jobs:

- name: "Setup"
run: |
sudo apt-get install -y libgmp-dev libmpfr-dev autoconf libtool-bin perl
sudo apt-get install -y libgmp-dev libmpfr-dev autoconf libtool-bin perl libopenblas-dev
clang --version
make --version
autoconf --version
Expand All @@ -338,6 +282,7 @@ jobs:
./bootstrap.sh
./configure \
CC=${CC} \
--with-blas \
--disable-debug
- name: "Compile library"
Expand Down Expand Up @@ -496,7 +441,7 @@ jobs:
alpine-32bit:
name: Alpine Linux, musl, 32-bit (assert, x1.5)

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

env:
CC: "gcc"
Expand Down Expand Up @@ -565,7 +510,7 @@ jobs:
# nemo
##############################################################################
nemo:
name: Nemo.jl (temporary branch)
name: Nemo.jl

runs-on: ubuntu-24.04

Expand Down

0 comments on commit 027c67f

Please sign in to comment.