Skip to content

Commit 034e5c1

Browse files
committed
Use gcc11 on Ubuntu 20.04
1 parent 317c1a1 commit 034e5c1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/linux-build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
sudo apt-get update
3535
sudo apt-get install -y libxkbcommon-x11-0
3636
shell: bash
37+
- name: Install GCC11
38+
shell: bash
39+
run: |
40+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
41+
sudo apt update
42+
sudo apt install gcc-11 g++-11
43+
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
3744
## Install Qt
3845
- if: contains(matrix.arch, 'amd64')
3946
name: Install Qt (Ubuntu)

.github/workflows/release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
sudo apt-get update
3636
sudo apt-get install -y libxkbcommon-x11-0
3737
shell: bash
38+
- name: Install GCC11
39+
shell: bash
40+
run: |
41+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
42+
sudo apt update
43+
sudo apt install gcc-11 g++-11
44+
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
3845
- name: Get version
3946
run: |
4047
version=$(LC_ALL=en_US.utf8 grep -oP 'project\([^)]*\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt)

0 commit comments

Comments
 (0)