From f4f9705ba22424a5506e598652ac31dac6e2269e Mon Sep 17 00:00:00 2001 From: Carlos Serrano Date: Fri, 3 May 2024 11:54:45 +0200 Subject: [PATCH] try to install python2 manually to fix ci pipeline --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8556ce..426629c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,11 +142,17 @@ jobs: shell: bash -eo pipefail -l {0} run: | if [[ "${{ matrix.node-version }}" == 0.6* ]]; then + wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz + sudo tar xzf Python-2.7.9.tgz + cd Python-2.7.9 + sudo ./configure --enable-optimizations + sudo make altinstall + cd .. sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 sudo sh -c 'echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic universe" >> /etc/apt/sources.list' sudo sh -c 'echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list' sudo apt-get update - sudo apt-get install g++-4.8 gcc-4.8 libssl1.0-dev python2 python-is-python2 + sudo apt-get install g++-4.8 gcc-4.8 libssl1.0-dev export CC=/usr/bin/gcc-4.8 export CXX=/usr/bin/g++-4.8 fi