]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1553: CI: using slightly outdated gcc version v9.0.1553
authorPhilip H <47042125+pheiduck@users.noreply.github.com>
Sat, 13 May 2023 17:05:20 +0000 (18:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 May 2023 17:05:20 +0000 (18:05 +0100)
Problem:    CI: using slightly outdated gcc version.
Solution:   Use "brew" to get a more recent gcc version.  (closes #12391)

.github/workflows/ci.yml
src/version.c

index 1c51507264e5a9d39bbef6db3870d085746fbba9..bd903dc93e9fe3c85d566f2f65848fed02f7dd54 100644 (file)
@@ -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'
index 2f2fa1291bd30cf5ed0ecf7da435c7f18ef6038a..ed51a81a54a3c6f10a4f815e91731955166b121d 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1553,
 /**/
     1552,
 /**/