diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 7e5fef4..e4b06c7 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -52,12 +52,12 @@ jobs: if: matrix.os == 'ubuntu-latest' && matrix.c_compiler == 'gcc' run: | g++ --version + sudo apt update + sudo apt install software-properties-common sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt update - sudo apt install g++-${{ matrix.gcc_version }} - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc_version }} ${{ matrix.gcc_version }}0 - sudo update-alternatives --config gcc - sudo update-alternatives --config g++ + sudo apt install gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc_version }} -y + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc_version }} ${{ matrix.gcc_version }} --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc_version }} g++ --version