Skip to content

Commit 48fa0a2

Browse files
committed
Use gcc 11
1 parent 5c24904 commit 48fa0a2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
run: |
3131
sudo apt-get update
3232
sudo apt-get install -y nlohmann-json3-dev libutfcpp-dev libgd-dev xvfb libxcb-cursor0
33+
- name: Install GCC11
34+
shell: bash
35+
run: |
36+
sudo apt update
37+
sudo apt install gcc-11 g++-11
38+
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
3339
shell: bash
3440
- name: Install Qt
3541
uses: jurplel/install-qt-action@v4

.github/workflows/utests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
sudo apt-get update
3232
sudo apt-get install -y nlohmann-json3-dev libutfcpp-dev libgd-dev xvfb libxcb-cursor0
3333
shell: bash
34+
- name: Install GCC11
35+
shell: bash
36+
run: |
37+
sudo apt update
38+
sudo apt install gcc-11 g++-11
39+
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
3440
- name: Install Qt
3541
uses: jurplel/install-qt-action@v4
3642
with:

0 commit comments

Comments
 (0)