Skip to content

Commit 60fab78

Browse files
authored
drop ubuntu 20.04 (#19657)
https://endoflife.date/ubuntu > 31 May 2025
1 parent afd5427 commit 60fab78

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

.github/workflows/build-linux-installer-deb.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ${{ matrix.os.runs-on }}
4848
needs:
4949
- version
50-
container: chianetwork/ubuntu-20.04-builder:latest
50+
container: chianetwork/ubuntu-22.04-builder:latest
5151
timeout-minutes: 120
5252
strategy:
5353
fail-fast: false
@@ -261,10 +261,6 @@ jobs:
261261
type: debian
262262
# https://packages.debian.org/bookworm/python/python3 (3.11)
263263
url: "docker://debian:bookworm"
264-
- name: ubuntu:focal (20.04)
265-
type: ubuntu
266-
# https://packages.ubuntu.com/focal/python3 (20.04, 3.8)
267-
url: "docker://ubuntu:focal"
268264
- name: ubuntu:jammy (22.04)
269265
type: ubuntu
270266
# https://packages.ubuntu.com/jammy/python3 (22.04, 3.10)

.github/workflows/test-install-scripts.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ jobs:
170170
- name: rockylinux:9
171171
type: rocky
172172
url: "docker://rockylinux:9"
173-
- name: ubuntu:focal (20.04)
174-
type: ubuntu
175-
# https://packages.ubuntu.com/focal/python3 (20.04, 3.8)
176-
url: "docker://ubuntu:focal"
177173
- name: ubuntu:jammy (22.04)
178174
type: ubuntu
179175
# https://packages.ubuntu.com/jammy/python3 (22.04, 3.10)

install-timelord.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,6 @@ echo "${CHIAVDF_POETRY_INFO_VERSION}"
5959
CHIAVDF_VERSION="chiavdf==${CHIAVDF_POETRY_INFO_VERSION}"
6060
echo "${CHIAVDF_VERSION}"
6161

62-
ubuntu_cmake_install() {
63-
UBUNTU_PRE_2004=$(python -c 'import subprocess; id = subprocess.run(["lsb_release", "-is"], stdout=subprocess.PIPE); version = subprocess.run(["lsb_release", "-rs"], stdout=subprocess.PIPE); print(id.stdout.decode("ascii") == "Ubuntu\n" and float(version.stdout) < float(20.04))')
64-
if [ "$UBUNTU_PRE_2004" = "True" ]; then
65-
echo "Installing CMake with snap."
66-
sudo apt-get install snapd -y
67-
sudo apt-get remove --purge cmake -y
68-
hash -r
69-
sudo snap install cmake --classic
70-
# shellcheck disable=SC1091
71-
. /etc/profile
72-
else
73-
echo "Ubuntu 20.04LTS and newer support CMake 3.16+"
74-
sudo apt-get install cmake -y
75-
fi
76-
}
77-
7862
symlink_vdf_bench() {
7963
if [ ! -e vdf_bench ] && [ -e venv/lib/"$1"/site-packages/vdf_bench ]; then
8064
echo ln -s venv/lib/"$1"/site-packages/vdf_bench
@@ -111,8 +95,6 @@ if [ -e "$THE_PATH" ]; then
11195
else
11296
if [ -e venv/bin/python ] && test "$UBUNTU_DEBIAN"; then
11397
echo "Installing chiavdf dependencies on Ubuntu/Debian"
114-
# If Ubuntu version is older than 20.04LTS then upgrade CMake
115-
ubuntu_cmake_install
11698
# Install remaining needed development tools - assumes venv and prior run of install.sh
11799
echo "apt-get install libgmp-dev libboost-python-dev $PYTHON_DEV_DEPENDENCY libboost-system-dev build-essential -y"
118100
sudo apt-get install libgmp-dev libboost-python-dev "$PYTHON_DEV_DEPENDENCY" libboost-system-dev build-essential -y

0 commit comments

Comments
 (0)