From 1c4f8b17cc32d15f9e93aad44878c66e06d301d6 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Fri, 20 Feb 2026 14:21:46 +0100 Subject: [PATCH] Adapt GitHub Actions CI to fetch and run Palladium Core instead of BitcoinCore --- .github/scripts/install-bitcoind.sh | 31 ----------------------- .github/scripts/install-palladiumd.sh | 17 +++++++++++++ .github/workflows/ci.yaml | 33 +++++++++---------------- .github/workflows/coverage-nightly.yaml | 2 +- .github/workflows/macos.yaml | 25 +++++++++---------- 5 files changed, 41 insertions(+), 67 deletions(-) delete mode 100755 .github/scripts/install-bitcoind.sh create mode 100755 .github/scripts/install-palladiumd.sh diff --git a/.github/scripts/install-bitcoind.sh b/.github/scripts/install-bitcoind.sh deleted file mode 100755 index 842c6ccd9..000000000 --- a/.github/scripts/install-bitcoind.sh +++ /dev/null @@ -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 - diff --git a/.github/scripts/install-palladiumd.sh b/.github/scripts/install-palladiumd.sh new file mode 100755 index 000000000..a688170a6 --- /dev/null +++ b/.github/scripts/install-palladiumd.sh @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b9a93a23e..f5ac5d1b2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/coverage-nightly.yaml b/.github/workflows/coverage-nightly.yaml index cbf04b2f4..a410fe1e7 100644 --- a/.github/workflows/coverage-nightly.yaml +++ b/.github/workflows/coverage-nightly.yaml @@ -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 diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 71ca8e9d2..41f58bfb1 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -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