From 8373ad5b1193eec135a1c6c36020d58bf6715acc Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Thu, 3 Oct 2024 16:00:29 -0700 Subject: [PATCH] Linux.yml: test with gcc 12 & 14 (#255) * Linux.yml: test with gcc 12 & 14 * debug * move macos CI to gcc-12 --- .github/workflows/Linux.yml | 17 +++++++++++++---- .github/workflows/MacOS.yml | 4 ++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Linux.yml b/.github/workflows/Linux.yml index e1ec6781..32157027 100644 --- a/.github/workflows/Linux.yml +++ b/.github/workflows/Linux.yml @@ -14,18 +14,26 @@ on: jobs: Linux: - runs-on: ubuntu-latest - env: - FC: gfortran-10 - CC: gcc-10 + runs-on: ubuntu-24.04 strategy: matrix: openmp: [ ON, OFF ] options: [ -DBUILD_D=OFF, -DBUILD_4=OFF, -DBUILD_8=ON ] + gcc-version: [12] + include: + - openmp: ON + options: -DBUILD_8=ON + gcc-version: 14 steps: + - name: get-gcc + run: | + if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then + sudo apt install gcc-${{ matrix.gcc-version }} + fi + - name: checkout uses: actions/checkout@v4 with: @@ -34,6 +42,7 @@ jobs: - name: build run: | sudo apt install libopenblas-serial-dev + export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }} cmake -S ip -B ip/build -DCMAKE_PREFIX_PATH="~/" -DOPENMP=${{ matrix.openmp }} ${{ matrix.options }} -DCMAKE_INSTALL_PREFIX=~/install -DBLA_VENDOR=OpenBLAS cmake --build ip/build --parallel 2 --verbose cmake --install ip/build diff --git a/.github/workflows/MacOS.yml b/.github/workflows/MacOS.yml index 1fffd233..5960da91 100644 --- a/.github/workflows/MacOS.yml +++ b/.github/workflows/MacOS.yml @@ -16,8 +16,8 @@ jobs: MacOS: runs-on: macos-latest env: - FC: gfortran-11 - CC: gcc-11 + FC: gfortran-12 + CC: gcc-12 strategy: matrix: openmp: [ ON, OFF ]