From b6a19594b29a7d4f33a1f4324a0579df61f48d06 Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat, 13 May 2023 18:05:20 +0100 Subject: patch 9.0.1553: CI: using slightly outdated gcc version Problem: CI: using slightly outdated gcc version. Solution: Use "brew" to get a more recent gcc version. (closes #12391) --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c5150726..bd903dc93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,9 +98,10 @@ jobs: - name: Install gcc-${{ env.GCC_VER }} if: matrix.compiler == 'gcc' run: | - sudo apt-get install -y gcc-${{ env.GCC_VER }} - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_VER }} 100 - sudo update-alternatives --set gcc /usr/bin/gcc-${{ env.GCC_VER }} + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew install gcc@${{ env.GCC_VER }} + sudo update-alternatives --install /usr/bin/gcc gcc /home/linuxbrew/.linuxbrew/bin/gcc-${{ env.GCC_VER }} 100 + sudo update-alternatives --set gcc /home/linuxbrew/.linuxbrew/bin/gcc-${{ env.GCC_VER }} - name: Install clang-${{ env.CLANG_VER }} if: matrix.compiler == 'clang' -- cgit v1.2.1