From 0ad20e11b6b1e50509a4783c675aaa41a2d3529b Mon Sep 17 00:00:00 2001 From: Alberto Otero de la Roza Date: Thu, 2 May 2024 11:14:17 +0200 Subject: [PATCH] update github workflow --- .github/workflows/build-cmake.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 93d59c40..8019552d 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -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 @@ -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