From 1e7d937e1688f4ead301a4daaea649cb95cd9309 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Tue, 17 Nov 2020 22:00:10 -0500 Subject: GHA: Switch to ubuntu-20.04 image for Linux Stop explicitly installing Ubuntu's python package, since most of the Python 2 packages (and importantly pip/setuptools) have been removed in this Ubuntu version. --- .github/workflows/linux.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d693f5e593..b8a8c01137 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: linux: name: ${{ matrix.flavor }} (cc=${{ matrix.cc }}) - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: include: @@ -26,12 +26,12 @@ jobs: if: matrix.flavor == 'asan' || matrix.flavor == 'tsan' run: | wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - - sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' + sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main' - name: Install apt packages run: | sudo apt-get update - sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext gperf language-pack-tr libtool-bin locales ninja-build pkg-config python python-pip python-setuptools python3 python3-pip python3-setuptools unzip valgrind xclip + sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext gperf language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip - name: Install new clang if: matrix.flavor == 'asan' || matrix.flavor == 'tsan' -- cgit From 80d1c4da5ffb652474e398f2d4ce6fd1d66a878e Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 18 Nov 2020 22:44:00 -0500 Subject: ci: Only try installing python-pynvim if Py2 pip is present --- ci/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/install.sh b/ci/install.sh index ebbd820d9f..1edc1138ee 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -15,8 +15,10 @@ fi # Use default CC to avoid compilation problems when installing Python modules. echo "Install neovim module for Python 3." CC=cc python3 -m pip -q install --user --upgrade pynvim -echo "Install neovim module for Python 2." -CC=cc python2 -m pip -q install --user --upgrade pynvim +if python2 -m pip -c True 2>&1; then + echo "Install neovim module for Python 2." + CC=cc python2 -m pip -q install --user --upgrade pynvim +fi echo "Install neovim RubyGem." gem install --no-document --bindir "$HOME/.local/bin" --user-install --pre neovim -- cgit