comparison .github/workflows/ci.yml @ 28479:da67829ad0d3 v8.2.4764

patch 8.2.4764: CI uses an older gcc version Commit: https://github.com/vim/vim/commit/d2edee5cf3bd1eb69d88a12bcab33fc4228e83c0 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat Apr 16 20:04:30 2022 +0100 patch 8.2.4764: CI uses an older gcc version Problem: CI uses an older gcc version. Solution: Use GCC 11. (closes https://github.com/vim/vim/issues/10185)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Apr 2022 21:15:03 +0200
parents c01ae844a9cc
children 9563ae315e88
comparison
equal deleted inserted replaced
28478:f7119d11e5ab 28479:da67829ad0d3
19 env: 19 env:
20 CC: ${{ matrix.compiler }} 20 CC: ${{ matrix.compiler }}
21 TEST: test 21 TEST: test
22 SRCDIR: ./src 22 SRCDIR: ./src
23 LEAK_CFLAGS: -DEXITFREE 23 LEAK_CFLAGS: -DEXITFREE
24 CFLAGS: -Wno-error=deprecated-declarations
24 LOG_DIR: ${{ github.workspace }}/logs 25 LOG_DIR: ${{ github.workspace }}/logs
25 TERM: xterm 26 TERM: xterm
26 DISPLAY: ':99' 27 DISPLAY: ':99'
27 DEBIAN_FRONTEND: noninteractive 28 DEBIAN_FRONTEND: noninteractive
28 29
86 libsodium-dev \ 87 libsodium-dev \
87 ) 88 )
88 fi 89 fi
89 sudo apt update && sudo apt install -y "${PKGS[@]}" 90 sudo apt update && sudo apt install -y "${PKGS[@]}"
90 91
92 - name: Install gcc-11
93 if: matrix.compiler == 'gcc'
94 run: |
95 sudo add-apt-repository ppa:ubuntu-toolchain-r/test
96 sudo apt install -y gcc-11
97 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
98 sudo update-alternatives --set gcc /usr/bin/gcc-11
99
91 - name: Install clang-14 100 - name: Install clang-14
92 if: matrix.compiler == 'clang' 101 if: matrix.compiler == 'clang'
93 run: | 102 run: |
94 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - 103 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
95 . /etc/lsb-release 104 . /etc/lsb-release
96 sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-14 main" 105 sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-14 main"
97 sudo apt-get install -y clang-14 llvm-14 106 sudo apt install -y clang-14 llvm-14
98 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100 107 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100
99 sudo update-alternatives --set clang /usr/bin/clang-14 108 sudo update-alternatives --set clang /usr/bin/clang-14
100 sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-14 100 109 sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-14 100
101 sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-14 100 110 sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-14 100
102 111