diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index eaecd6930..c136da40d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -10,11 +10,11 @@ jobs: fail-fast: false matrix: build_type : [ Release, Debug ] - os : [ macos-latest, ubuntu-20.04 ] + os : [ macos-latest, ubuntu-22.04 ] include: - - os: ubuntu-20.04 - cc: /usr/bin/gcc-10 - cxx: /usr/bin/g++-10 + - os: ubuntu-22.04 + cc: /usr/bin/gcc-12 + cxx: /usr/bin/g++-12 - os: macos-latest cc: clang cxx: clang++ @@ -48,12 +48,12 @@ jobs: run: brew install ninja gcc@10 boost eigen open-mpi bison ccache - name: Install prerequisites Ubuntu packages - if: ${{ matrix.os == 'ubuntu-20.04' }} + if: ${{ matrix.os == 'ubuntu-22.04' }} run: | wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" sudo apt-get update - sudo apt-get -y install ninja-build g++-10 liblapack-dev libboost-dev libboost-serialization-dev libeigen3-dev openmpi-bin libopenmpi-dev libtbb-dev ccache flex bison cmake + sudo apt-get -y install ninja-build g++-12 liblapack-dev libboost-dev libboost-serialization-dev libeigen3-dev openmpi-bin libopenmpi-dev libtbb-dev ccache flex bison cmake - name: Create Build Environment # Some projects don't allow in-source building, so create a separate build directory @@ -63,7 +63,7 @@ jobs: - name: Install doxygen for Release test - if: ${{ matrix.os == 'ubuntu-20.04' }} + if: ${{ matrix.os == 'ubuntu-22.04' }} run: | if [ "${{matrix.build_type}}" = "Release" ]; then sudo apt-get -y install libclang1-9 libclang-cpp9 graphviz fonts-liberation @@ -144,7 +144,7 @@ jobs: cmake --build test_install_userexamples/build - name: Build+Deploy Dox - if: ${{ matrix.os == 'ubuntu-20.04' && matrix.build_type == 'Release' && github.ref == 'refs/heads/master' }} + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.build_type == 'Release' && github.ref == 'refs/heads/master' }} working-directory: ${{github.workspace}}/build shell: bash run: |