Adapt GitHub Actions CI to fetch and run Palladium Core instead of BitcoinCore
This commit is contained in:
31
.github/scripts/install-bitcoind.sh
vendored
31
.github/scripts/install-bitcoind.sh
vendored
@@ -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
17
.github/scripts/install-palladiumd.sh
vendored
Executable 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
|
||||
33
.github/workflows/ci.yaml
vendored
33
.github/workflows/ci.yaml
vendored
@@ -279,10 +279,10 @@ jobs:
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Install bitcoind
|
||||
- name: Install palladiumd
|
||||
env:
|
||||
TEST_NETWORK: ${{ matrix.TEST_NETWORK }}
|
||||
run: .github/scripts/install-bitcoind.sh
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -399,10 +399,10 @@ jobs:
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Install bitcoind
|
||||
- name: Install palladiumd
|
||||
env:
|
||||
TEST_NETWORK: ${{ matrix.TEST_NETWORK }}
|
||||
run: .github/scripts/install-bitcoind.sh
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -509,8 +509,8 @@ jobs:
|
||||
sudo apt-get install -yyq valgrind
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Install bitcoind
|
||||
run: .github/scripts/install-bitcoind.sh
|
||||
- name: Install palladiumd
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -602,8 +602,8 @@ jobs:
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Install bitcoind
|
||||
run: .github/scripts/install-bitcoind.sh
|
||||
- name: Install palladiumd
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -654,10 +654,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
- name: Install bitcoind
|
||||
- name: Install palladiumd
|
||||
env:
|
||||
TEST_NETWORK: regtest
|
||||
run: .github/scripts/install-bitcoind.sh
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -711,17 +711,8 @@ jobs:
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Download Bitcoin Core
|
||||
run: wget "https://bitcoincore.org/bin/bitcoin-core-${{ matrix.MIN_BTC_VERSION }}/bitcoin-${{ matrix.MIN_BTC_VERSION }}-x86_64-linux-gnu.tar.gz"
|
||||
|
||||
- name: Extract Bitcoin Core
|
||||
run: tar -xf "bitcoin-${{ matrix.MIN_BTC_VERSION }}-x86_64-linux-gnu.tar.gz"
|
||||
|
||||
- name: Move Bitcoin Core Binaries
|
||||
run: sudo mv bitcoin-${{ matrix.MIN_BTC_VERSION }}/bin/* /usr/local/bin/
|
||||
|
||||
- name: Clean Up Downloaded Bitcoin
|
||||
run: rm -rf "bitcoin-${{ matrix.MIN_BTC_VERSION }}-x86_64-linux-gnu.tar.gz" "bitcoin-${{ matrix.MIN_BTC_VERSION }}"
|
||||
- name: Download Palladium Core
|
||||
run: .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
2
.github/workflows/coverage-nightly.yaml
vendored
2
.github/workflows/coverage-nightly.yaml
vendored
@@ -74,7 +74,7 @@ jobs:
|
||||
run: bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Install Bitcoin Core
|
||||
run: bash -x .github/scripts/install-bitcoind.sh
|
||||
run: bash -x .github/scripts/install-palladiumd.sh
|
||||
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
25
.github/workflows/macos.yaml
vendored
25
.github/workflows/macos.yaml
vendored
@@ -9,21 +9,18 @@ jobs:
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
bitcoind-version: ["27.1"]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download Bitcoin ${{ matrix.bitcoind-version }} & install binaries
|
||||
- name: Download Palladium & install binaries
|
||||
run: |
|
||||
export BITCOIND_VERSION=${{ matrix.bitcoind-version }}
|
||||
export TARGET_ARCH="arm64-apple-darwin"
|
||||
|
||||
wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz
|
||||
tar -xzf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz
|
||||
sudo mv bitcoin-${BITCOIND_VERSION}/bin/* /usr/local/bin
|
||||
rm -rf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz bitcoin-${BITCOIND_VERSION}
|
||||
wget https://github.com/palladium-coin/palladiumcore/releases/latest/download/palladium-arm64-apple-darwin.tar.gz
|
||||
tar -xzf palladium-arm64-apple-darwin.tar.gz
|
||||
cd arm64-apple-darwin
|
||||
sudo mv palladium* /usr/local/bin
|
||||
cd ..
|
||||
rm -rf arm64-apple-darwin palladium-arm64-apple-darwin.tar.gz
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v5
|
||||
@@ -52,15 +49,15 @@ jobs:
|
||||
uv run ./configure --disable-valgrind --disable-compat
|
||||
uv run make
|
||||
|
||||
- name: Start bitcoind in regtest mode
|
||||
- name: Start palladiumd in regtest mode
|
||||
run: |
|
||||
bitcoind -regtest -daemon
|
||||
palladiumd -regtest -daemon
|
||||
sleep 5
|
||||
|
||||
- name: Generate initial block
|
||||
run: |
|
||||
bitcoin-cli -regtest createwallet default_wallet
|
||||
bitcoin-cli -regtest generatetoaddress 1 $(bitcoin-cli -regtest getnewaddress)
|
||||
palladium-cli -regtest createwallet default_wallet
|
||||
palladium-cli -regtest generatetoaddress 1 $(palladium-cli -regtest getnewaddress)
|
||||
sleep 2
|
||||
|
||||
- name: Start CLN in regtest mode
|
||||
|
||||
Reference in New Issue
Block a user