Skip to content

Commit 1d9dcf3

Browse files
authored
Manually install g++-9 in workflow (#2416)
1 parent d92ab66 commit 1d9dcf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ jobs:
175175
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common postgresql-client-common
176176
sudo apt-get -y install postgresql-all
177177
178-
- name: Install g++-13
179-
if: startsWith(matrix.compiler.cxx, 'g++') && matrix.compiler.ver == 13
178+
- name: Install g++
179+
if: startsWith(matrix.compiler.cxx, 'g++') && (matrix.compiler.ver == 13 || matrix.compiler.ver == 9)
180180
run: |
181181
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
182182
sudo apt-get install g++-${{ matrix.compiler.ver }}
183-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
183+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.compiler.ver }} ${{ matrix.compiler.ver }}
184184
185185
- name: Install Clang
186186
if: startsWith(matrix.compiler.cxx, 'clang') && matrix.compiler.ver < 13

0 commit comments

Comments
 (0)