Skip to content

Commit 772bd21

Browse files
authored
Fixing the CI on Ubuntu (#31)
* pin the version of geth used in CI * pin the version of geth used in CI * temp: run on each push * pin the version of geth used in CI * Make geth installation arch dependent * Remove temp run on push to branch * Add a comment on the need for pre-built binaries
1 parent 0513a4b commit 772bd21

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,28 @@ jobs:
9999
- name: Install Geth on Ubuntu
100100
if: matrix.os == 'ubuntu-24.04'
101101
run: |
102-
sudo add-apt-repository -y ppa:ethereum/ethereum
103102
sudo apt-get update
104-
sudo apt-get install -y ethereum protobuf-compiler
103+
sudo apt-get install -y protobuf-compiler
104+
105+
# We were facing some issues in CI with the 1.16.* versions of geth, and specifically on
106+
# Ubuntu. Eventually, we found out that the last version of geth that worked in our CI was
107+
# version 1.15.11. Thus, this is the version that we want to use in CI. The PPA sadly does
108+
# not have historic versions of Geth and therefore we need to resort to downloading pre
109+
# built binaries for Geth and the surrounding tools which is what the following parts of
110+
# the script do.
111+
112+
sudo apt-get install -y wget ca-certificates tar
113+
ARCH=$(uname -m)
114+
if [ "$ARCH" = "x86_64" ]; then
115+
URL="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.15.11-36b2371c.tar.gz"
116+
elif [ "$ARCH" = "aarch64" ]; then
117+
URL="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-arm64-1.15.11-36b2371c.tar.gz"
118+
else
119+
echo "Unsupported architecture: $ARCH"
120+
exit 1
121+
fi
122+
wget -qO- "$URL" | sudo tar xz -C /usr/local/bin --strip-components=1
123+
geth --version
105124
106125
- name: Install Geth on macOS
107126
if: matrix.os == 'macos-14'

0 commit comments

Comments
 (0)