Install gcc in ci. (#2028)

This commit is contained in:
Nitromelon 2024-05-22 14:48:12 +08:00 committed by GitHub
parent 82c46f13f8
commit 306df8a8fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,6 +179,13 @@ jobs:
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common postgresql-client-common
sudo apt-get -y install postgresql-all
- name: Install g++-13
if: startsWith(matrix.compiler.cxx, 'g++') && matrix.compiler.ver == 13
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get install g++-${{ matrix.compiler.ver }}
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
- name: Install Clang
if: startsWith(matrix.compiler.cxx, 'clang') && matrix.compiler.ver < 13
run: sudo apt-get install clang-${{ matrix.compiler.ver }}