Skip to content

Commit ff0ad48

Browse files
committed
Make geth installation arch dependent
1 parent 953b3f2 commit ff0ad48

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,17 @@ jobs:
108108
# Download and install Geth all-tools from the geth store website as the PPA only has the
109109
# latest versions of Geth.
110110
sudo apt-get install -y wget ca-certificates tar
111-
wget -qO- https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-arm64-1.15.11-36b2371c.tar.gz \
112-
| sudo tar xz -C /usr/local/bin --strip-components=1
111+
ARCH=$(uname -m)
112+
if [ "$ARCH" = "x86_64" ]; then
113+
URL="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.15.11-36b2371c.tar.gz"
114+
elif [ "$ARCH" = "aarch64" ]; then
115+
URL="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-arm64-1.15.11-36b2371c.tar.gz"
116+
else
117+
echo "Unsupported architecture: $ARCH"
118+
exit 1
119+
fi
120+
wget -qO- "$URL" | sudo tar xz -C /usr/local/bin --strip-components=1
121+
geth --version
113122
114123
- name: Install Geth on macOS
115124
if: matrix.os == 'macos-14'

0 commit comments

Comments
 (0)