mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
CI: set elements and bitcoind versions in one place.
We have them spread everywhere: unify them, and make setup.sh use install-bitcoind.sh Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
cb4dd7489c
commit
c30502779e
3
.github/scripts/install-bitcoind.sh
vendored
3
.github/scripts/install-bitcoind.sh
vendored
@ -2,6 +2,9 @@
|
||||
|
||||
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"
|
||||
|
17
.github/scripts/setup.sh
vendored
17
.github/scripts/setup.sh
vendored
@ -1,8 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export BITCOIN_VERSION=27.1
|
||||
export ELEMENTS_VERSION=22.0.2
|
||||
export RUST_VERSION=stable
|
||||
|
||||
sudo useradd -ms /bin/bash tester
|
||||
@ -53,20 +51,7 @@ sudo apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
|
||||
echo "tester ALL=(root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/tester
|
||||
sudo chmod 0440 /etc/sudoers.d/tester
|
||||
|
||||
(
|
||||
cd /tmp/ || exit 1
|
||||
wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz
|
||||
wget https://github.com/ElementsProject/elements/releases/download/elements-${ELEMENTS_VERSION}/elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz
|
||||
tar -xf bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz
|
||||
tar -xf elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz
|
||||
sudo mv bitcoin-${BITCOIN_VERSION}/bin/* /usr/local/bin
|
||||
sudo mv elements-${ELEMENTS_VERSION}/bin/* /usr/local/bin
|
||||
rm -rf \
|
||||
bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz \
|
||||
bitcoin-${BITCOIN_VERSION} \
|
||||
elements-${ELEMENTS_VERSION}-x86_64-linux-gnu.tar.gz \
|
||||
elements-${ELEMENTS_VERSION}
|
||||
)
|
||||
"$(dirname "$0")"/install-bitcoind.sh
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
||||
-y --default-toolchain ${RUST_VERSION}
|
||||
|
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -211,8 +211,6 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
BITCOIN_VERSION: "27.1"
|
||||
ELEMENTS_VERSION: 23.2.1
|
||||
RUST_PROFILE: release # Has to match the one in the compile step
|
||||
PYTEST_OPTS: --timeout=1200 --force-flaky
|
||||
needs:
|
||||
@ -319,8 +317,6 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
BITCOIN_VERSION: "27.1"
|
||||
ELEMENTS_VERSION: 23.2.1
|
||||
RUST_PROFILE: release # Has to match the one in the compile step
|
||||
CFG: compile-gcc
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --force-flaky
|
||||
@ -389,8 +385,6 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
BITCOIN_VERSION: "27.1"
|
||||
ELEMENTS_VERSION: 23.2.1
|
||||
RUST_PROFILE: release
|
||||
SLOW_MACHINE: 1
|
||||
TEST_DEBUG: 1
|
||||
|
Loading…
Reference in New Issue
Block a user