From 687041bcbdae0af005c6a1d7364d35368caabf8b Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Wed, 25 Sep 2024 09:53:37 -0400 Subject: [PATCH] [ci] bump to ubuntu 22.04 --- .github/workflows/cmake.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 58452528..ede5f2a2 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -10,12 +10,14 @@ jobs: fail-fast: false matrix: build_type : [ Release, Debug ] - os : [ macos-latest, ubuntu-20.04 ] + os : [ macos-latest, ubuntu-22.04 ] linalg : [netlib, vendor] include: - - os: ubuntu-20.04 - cxx: /usr/bin/g++-9 + - os: ubuntu-22.04 + cc: /usr/bin/gcc-12 + cxx: /usr/bin/g++-12 - os: macos-latest + cc: clang cxx: clang++ name: "${{ matrix.os }}: ${{ matrix.cxx }} ${{ matrix.build_type }} linalg=${{ matrix.linalg }}" @@ -45,7 +47,7 @@ jobs: - name: Install prerequisite MacOS packages if: ${{ matrix.os == 'macos-latest' }} run: | - brew install ninja gcc@10 boost eigen open-mpi bison ccache + brew install ninja boost eigen open-mpi bison ccache # install Netlib if want generic linalg if [ "${{matrix.linalg}}" = "netlib" ]; then brew install lapack @@ -55,10 +57,10 @@ jobs: fi - name: Install prerequisites Ubuntu packages - if: ${{ matrix.os == 'ubuntu-20.04' }} + if: ${{ matrix.os == 'ubuntu-22.04' }} run: | sudo apt-get update - sudo apt-get install ninja-build g++-9 liblapack-dev libboost-dev libboost-serialization-dev libboost-random-dev libeigen3-dev openmpi-bin libopenmpi-dev libtbb-dev ccache + sudo apt-get install ninja-build g++-12 liblapack-dev libboost-dev libboost-serialization-dev libboost-random-dev libeigen3-dev openmpi-bin libopenmpi-dev libtbb-dev ccache if [ "${{matrix.build_type}}" = "Release" ]; then sudo apt-get install libclang1-9 libclang-cpp9 graphviz fonts-liberation cd ${{github.workspace}}/build @@ -109,7 +111,7 @@ jobs: # and build directories, but this is only available with CMake 3.13 and higher. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: | - cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBLAS_PREFERENCE_LIST=$BLAS_PREFERENCE_LIST $BUILD_CONFIG + cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBLAS_PREFERENCE_LIST=$BLAS_PREFERENCE_LIST $BUILD_CONFIG || (cat CMakeFiles/CMakeConfigureLog.yaml) - name: Build working-directory: ${{github.workspace}}/build @@ -138,7 +140,7 @@ jobs: cmake --build test_install - 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: |