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