Skip to content

Instantly share code, notes, and snippets.

@zethon
Created June 26, 2021 23:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zethon/0e8fe121ccec8d102288ffc8a462d40b to your computer and use it in GitHub Desktop.
Save zethon/0e8fe121ccec8d102288ffc8a462d40b to your computer and use it in GitHub Desktop.
Github Actions Ubuntu Install GCC-11
- 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
@johndpope
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment