changeset 32443:fbcf40a2bf58 v9.0.1553

patch 9.0.1553: CI: using slightly outdated gcc version Commit: https://github.com/vim/vim/commit/b6a19594b29a7d4f33a1f4324a0579df61f48d06 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat May 13 18:05:20 2023 +0100 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 https://github.com/vim/vim/issues/12391)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 May 2023 19:15:03 +0200
parents 6a28e3d7f7c5
children e01f2a5517a8
files .github/workflows/ci.yml src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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'
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1553,
+/**/
     1552,
 /**/
     1551,