diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d18c25e2304..39d3397049cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,6 +135,13 @@ jobs: path: /usr/local/git key: ${{ matrix.label }}-git-2.41.0 + - name: Install newer GCC + if: (matrix.package == 'rpm') && matrix.image == 'amazonlinux-2' && steps.cache-git.outputs.cache-hit != 'true' + run: | + yum update -y + yum install -y gcc10.x86_64 gcc10-c++.x86_64 + fi + # el-7,8, amazonlinux-2,2023 doesn't have git 2.18+, so we need to install it manually - name: Install newer Git if: (matrix.package == 'rpm') && matrix.image != '' && steps.cache-git.outputs.cache-hit != 'true'