mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ci: re-enable hive tests (#9240)
This commit is contained in:
23
.github/assets/install_geth.sh
vendored
Executable file
23
.github/assets/install_geth.sh
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Installs Geth (https://geth.ethereum.org) in $HOME/bin for x86_64 Linux.
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
GETH_BUILD=${GETH_BUILD:-"1.13.4-3f907d6a"}
|
||||
|
||||
name="geth-linux-amd64-$GETH_BUILD"
|
||||
|
||||
mkdir -p "$HOME/bin"
|
||||
wget "https://gethstore.blob.core.windows.net/builds/$name.tar.gz"
|
||||
tar -xvf "$name.tar.gz"
|
||||
rm "$name.tar.gz"
|
||||
mv "$name/geth" "$HOME/bin/geth"
|
||||
rm -rf "$name"
|
||||
chmod +x "$HOME/bin/geth"
|
||||
|
||||
# Add $HOME/bin to $PATH
|
||||
[[ "$PATH" != *$HOME/bin* ]] && export PATH=$HOME/bin:$PATH
|
||||
[ -n "$CI" ] && echo "$HOME/bin" >> "$GITHUB_PATH"
|
||||
|
||||
geth version
|
||||
Reference in New Issue
Block a user