summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPhilip H <47042125+pheiduck@users.noreply.github.com>2023-04-21 19:51:22 +0100
committerBram Moolenaar <Bram@vim.org>2023-04-21 19:51:22 +0100
commit9be736f2eb7b3474246d644d3defe6fd126b5b18 (patch)
treeb4cb6fd5a1c20de61ac610c29fea96118338a2b1 /.github
parent017227079f104bd69483ee3d33e31490d7e52135 (diff)
patch 9.0.1474: CI runs with old version of Ubuntu and toolsv9.0.1474
Problem: CI runs with old version of Ubuntu and tools. Solution: Update CI to more recent versions. (closes #11092)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml32
-rw-r--r--.github/workflows/coverity.yml10
2 files changed, 22 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d91e9cc855..8fd1515769 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,10 +17,12 @@ permissions:
jobs:
linux:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
env:
CC: ${{ matrix.compiler }}
+ GCC_VER: 12
+ CLANG_VER: 16
TEST: test
SRCDIR: ./src
LEAK_CFLAGS: -DEXITFREE
@@ -81,10 +83,10 @@ jobs:
lcov \
libcanberra-dev \
libperl-dev \
- python-dev \
+ python2-dev \
python3-dev \
- liblua5.3-dev \
- lua5.3 \
+ liblua5.4-dev \
+ lua5.4 \
ruby-dev \
tcl-dev \
cscope \
@@ -93,24 +95,24 @@ jobs:
fi
sudo apt-get update && sudo apt-get install -y "${PKGS[@]}"
- - name: Install gcc-11
+ - name: Install gcc-${{ env.GCC_VER }}
if: matrix.compiler == 'gcc'
run: |
- sudo apt-get install -y gcc-11
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
- sudo update-alternatives --set gcc /usr/bin/gcc-11
+ 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 }}
- - name: Install clang-16
+ - name: Install clang-${{ env.CLANG_VER }}
if: matrix.compiler == 'clang'
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
. /etc/lsb-release
- sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-16 main"
- sudo apt-get install -y clang-16 llvm-16
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
- sudo update-alternatives --set clang /usr/bin/clang-16
- sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-16 100
- sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-16 100
+ sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-${{ env.CLANG_VER }} main"
+ sudo apt-get install -y clang-${{ env.CLANG_VER }} llvm-${{ env.CLANG_VER }}
+ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ env.CLANG_VER }} 100
+ sudo update-alternatives --set clang /usr/bin/clang-${{ env.CLANG_VER }}
+ sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-${{ env.CLANG_VER }} 100
+ sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-${{ env.CLANG_VER }} 100
- name: Set up environment
run: |
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
index e399170f64..ba73390f68 100644
--- a/.github/workflows/coverity.yml
+++ b/.github/workflows/coverity.yml
@@ -9,7 +9,7 @@ permissions:
jobs:
scan:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
env:
CC: gcc
@@ -32,15 +32,15 @@ jobs:
- name: Install packages
if: env.TOKEN
run: |
- sudo apt update && sudo apt install -y \
+ sudo apt-get update && sudo apt-get install -y \
autoconf \
gettext \
libcanberra-dev \
libperl-dev \
- python-dev \
+ python2-dev \
python3-dev \
- liblua5.3-dev \
- lua5.3 \
+ liblua5.4-dev \
+ lua5.4 \
ruby-dev \
tcl-dev \
libgtk2.0-dev \