set gcc-12 as main alternative on ubuntu 22.04

This commit is contained in:
j.spijker@ultimaker.com 2022-08-10 09:27:15 +02:00 committed by jspijker
parent 7b6e56287b
commit 982074c047
2 changed files with 9 additions and 3 deletions

View file

@ -110,10 +110,13 @@ jobs:
- name: Install GCC-12 on ubuntu-22.04
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: sudo apt install g++-12 gcc-12 -y
run: |
sudo apt install g++-12 gcc-12 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
- name: Create the default Conan profile
run: conan profile new default --detec
run: conan profile new default --detect
- name: Get Conan configuration from branch
if: ${{ inputs.conan_config_branch != '' }}

View file

@ -124,7 +124,10 @@ jobs:
- name: Install GCC-12 on ubuntu-22.04
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: sudo apt install g++-12 gcc-12 -y
run: |
sudo apt install g++-12 gcc-12 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
- name: Create the default Conan profile
run: conan profile new default --detect