Skip to content

Commit

Permalink
refactor compiler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale authored Jan 4, 2025
1 parent 0836da8 commit 8d2050d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
gcc_v: [10, 12]
include:
- os: ubuntu-latest
os-arch: linux-x86_64

env:
FC: gfortran
GCC_V: ${{ matrix.gcc_v }}
Expand All @@ -24,12 +19,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install GFortran, OpenBLAS
- name: Install Fortran compiler
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc
version: 11

- name: Install OpenBLAS
if: contains(matrix.os, 'ubuntu')
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
sudo apt-get update
sudo apt-get install libopenblas-dev
- name: Install fpm
Expand Down

0 comments on commit 8d2050d

Please sign in to comment.