mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
gci: Split out installation of elements and bitcoin into a script
It was crowding the github workflow file
This commit is contained in:
committed by
Rusty Russell
parent
71b581da4d
commit
e17611c570
19
.github/scripts/install-bitcoind.sh
vendored
Executable file
19
.github/scripts/install-bitcoind.sh
vendored
Executable 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}"
|
||||
Reference in New Issue
Block a user