Adapt GitHub Actions CI to fetch and run Palladium Core instead of BitcoinCore

This commit is contained in:
2026-02-20 14:21:46 +01:00
parent ee8dccdd4d
commit 1c4f8b17cc
5 changed files with 41 additions and 67 deletions

View File

@@ -1,31 +0,0 @@
#!/bin/sh
set -e
export BITCOIN_VERSION=27.1
export ELEMENTS_VERSION=23.2.1
DIRNAME="bitcoin-${BITCOIN_VERSION}"
EDIRNAME="elements-${ELEMENTS_VERSION}"
FILENAME="${DIRNAME}-x86_64-linux-gnu.tar.gz"
EFILENAME="${EDIRNAME}-x86_64-linux-gnu.tar.gz"
cd /tmp/
# Since we inadvertently broke `elementsd` support in the past we only
# want to download and enable the daemon that is actually going to be
# used when running in CI. Otherwise we could end up accidentally
# testing against `bitcoind` but still believe that we ran against
# `elementsd`.
if [ "$TEST_NETWORK" = "liquid-regtest" ]; then
wget "https://github.com/ElementsProject/elements/releases/download/elements-${ELEMENTS_VERSION}/${EFILENAME}"
tar -xf "${EFILENAME}"
sudo mv "${EDIRNAME}"/bin/* "/usr/local/bin"
rm -rf "${EFILENAME}" "${EDIRNAME}"
else
wget "https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/${FILENAME}"
tar -xf "${FILENAME}"
sudo mv "${DIRNAME}"/bin/* "/usr/local/bin"
rm -rf "${FILENAME}" "${DIRNAME}"
fi

17
.github/scripts/install-palladiumd.sh vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -e
# Generic CI download script for Palladium Core Linux x86_64
cd /tmp/
wget https://github.com/palladium-coin/palladiumcore/releases/latest/download/palladium-linux-x86_64.tar.gz
tar -xzf palladium-linux-x86_64.tar.gz
# Move binaries to a location in the CI PATH
cd linux-x86_64
sudo mv palladium* /usr/local/bin/
# Clean up
cd ..
rm -rf linux-x86_64/ palladium-linux-x86_64.tar.gz