From e3968887261c86370f441bf545ff1c9b100e9231 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Wed, 31 Mar 2021 11:36:44 -0700 Subject: [PATCH] Manually install gcc and g++ 8 if needed (#2012) --- eng/pipelines/templates/jobs/archetype-sdk-client.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 4b8305fec..4afea543c 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -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: |