Skip to content

Commit

Permalink
Add repository for newer gcc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
4c3y committed May 27, 2024
1 parent b896d63 commit abae695
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cpp_ubuntu20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Install newest git version
run: sudo apt update && sudo apt-get install -y software-properties-common && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git

- name: Add testing repository
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update
if: ${{ matrix.gcc }} == '12'

- name: Install GCC version ${{ matrix.gcc }}
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update && sudo apt install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }} && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc }}

Expand Down

0 comments on commit abae695

Please sign in to comment.