Manually install gcc and g++ 8 if needed (#2012)

This commit is contained in:
Daniel Jurek 2021-03-31 11:36:44 -07:00 committed by GitHub
parent fcbaf7301c
commit e396888726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,17 @@ jobs:
parameters:
AgentImage: $(OSVmImage)
# Install gcc and g++ 8 if it is needed on the image.
- bash: sudo apt-get install gcc-8 g++-8 -y
displayName: Install gcc and g++ 8
condition: >-
and(
succeeded(),
contains(variables['OSVmImage'], 'Ubuntu'),
contains(variables['CC'], 'gcc-8'),
contains(variables['CXX'], 'g++-8')
)
# Validate all the files are formatted correctly according to the
# .clang-format file. This step is macOS only to use clang-format-11
- bash: |