Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed May 2, 2024
1 parent 9a15cc0 commit 0ad20e1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ env:

jobs:
build-cmake:
name: ${{ matrix.os }}, gfortran-${{ matrix.ver }}
name: ${{ matrix.os }}, gfortran
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ver: [10] # 7, 8, 9

runs-on: ${{ matrix.os }}
timeout-minutes: 10
Expand All @@ -31,17 +30,15 @@ jobs:
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.ver }} gfortran-${{ matrix.ver }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.ver }} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ matrix.ver }}
sudo apt-get install -y gcc gfortran
- name: Install packages (macOS)
if: contains(matrix.os,'macos')
run: |
brew install gcc@${{ matrix.ver }} || brew upgrade gcc@${{ matrix.ver }} || true
brew install gcc || brew upgrade gcc || true
- name: Build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc-${{ matrix.ver }} -DCMAKE_Fortran_COMPILER=gfortran-${{ matrix.ver }}
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran
cmake --build build/ --target all

0 comments on commit 0ad20e1

Please sign in to comment.