Skip to content

Commit 5c06dcc

Browse files
committed
Switch to gcc 10
1 parent 914f712 commit 5c06dcc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
version: ${{env.EM_VERSION}}
5252
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
5353

54+
# GCC 9 has a bug which prevents compilation of the testing framework, so switch to GCC 10.
55+
- name: Setup GCC
56+
if: matrix.platform.compiler == 'g++'
57+
run: |
58+
sudo apt install g++-10
59+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
60+
sudo update-alternatives --set gcc /usr/bin/gcc-10
61+
5462
- name: Create Build Environment
5563
run: cmake -E make_directory ${{github.workspace}}/build
5664

0 commit comments

Comments
 (0)