Created
June 26, 2021 23:52
-
-
Save zethon/0e8fe121ccec8d102288ffc8a462d40b to your computer and use it in GitHub Desktop.
Github Actions Ubuntu Install GCC-11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Install GCC11 | |
shell: bash | |
run: | | |
sudo apt update | |
sudo apt install gcc-11 g++-11 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gcc-11 not found? add mirror list, like this - https://packages.ubuntu.com/hirsute/amd64/gcc-11-multilib/download
deb http://security.ubuntu.com/ubuntu hirsute-security main universe