gci: Split out installation of elements and bitcoin into a script

It was crowding the github workflow file
This commit is contained in:
Christian Decker
2022-12-22 15:38:45 +01:00
committed by Rusty Russell
parent 71b581da4d
commit e17611c570
2 changed files with 91 additions and 15 deletions

19
.github/scripts/install-bitcoind.sh vendored Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -e
DIRNAME="bitcoin-${BITCOIN_VERSION}"
EDIRNAME="elements-${ELEMENTS_VERSION}"
FILENAME="${DIRNAME}-x86_64-linux-gnu.tar.bz2"
EFILENAME="${EDIRNAME}-x86_64-linux-gnu.tar.bz2"
cd /tmp/
wget "https://storage.googleapis.com/c-lightning-tests/$FILENAME"
wget -q "https://storage.googleapis.com/c-lightning-tests/${EFILENAME}"
tar -xaf "${FILENAME}"
tar -xaf "${EFILENAME}"
sudo mv "${DIRNAME}"/bin/* "/usr/local/bin"
sudo mv "${EDIRNAME}"/bin/* "/usr/local/bin"
rm -rf "${FILENAME}" "${EFILENAME}" "${DIRNAME}" "${EDIRNAME}"