Skip to content

Commit f82ebfa

Browse files
committed
workflows: Set up python2 in ubuntu-latest
Signed-off-by: techdiwas <diwasneupane652@gmail.com>
1 parent aae3e7c commit f82ebfa

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/actions/prep-env/action.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ runs:
88
shell: bash
99
working-directory: /home/runner
1010
run: |
11-
pwd
1211
sudo apt-get update
13-
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig python2 python3
12+
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
13+
14+
# Set up python2
15+
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
16+
tar xvf Python-2.7.18.tgz
17+
cd Python-2.7.18
18+
./configure --enable-optimizations
19+
make -j$(nproc)
20+
sudo make altinstall
21+
sudo ln -s /usr/local/bin/python2.7 /usr/bin/python
22+
rm Python-2.7.18.tgz

.github/workflows/build-kernel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
build-kernel:
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-latest
2222

2323
steps:
2424
- name: Checkout Workflow Repository

0 commit comments

Comments
 (0)